ClassThemeSourceCollection
A collection that stores ThemeSource objects.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class ThemeSourceCollection : CollectionBase, IList, ICollection, IEnumerable
Inheritance: objectCollectionBaseThemeSourceCollection
Implements:
Inherited Members
Constructors
ThemeSourceCollection(RadThemeManager)
Initializes a new instance of theThemeSourceCollection.
Declaration
public ThemeSourceCollection(RadThemeManager ownerManager)
Parameters
ownerManager
Owner component
ThemeSourceCollection(ThemeSourceCollection, RadThemeManager)
Initializes a new instance of the ThemeSourceCollection based on another ThemeSourceCollection.
Declaration
public ThemeSourceCollection(ThemeSourceCollection value, RadThemeManager ownerManager)
Parameters
value
A ThemeSourceCollection from which the contents are copied
ownerManager
Owner component
ThemeSourceCollection(ThemeSource[], RadThemeManager)
Initializes a new instance of the ThemeSourceCollection containing any array of ThemeSource objects.
Declaration
public ThemeSourceCollection(ThemeSource[] value, RadThemeManager ownerManager)
Parameters
value
A array of ThemeSource objects with which to intialize the collection
ownerManager
Owner component
Fields
ThemeSourcesChanged
Declaration
public ThemeSourcesChangedDelegate ThemeSourcesChanged
Field Value
Properties
OwnerManager
Declaration
public RadThemeManager OwnerManager { get; }
Property Value
this[int]
Represents the entry at the specified index of the ThemeSource.
Declaration
public ThemeSource this[int index] { get; set; }
Parameters
index
The zero-based index of the entry to locate in the collection.
Property Value
The entry at the specified index of the collection.
Exceptions
index is outside the valid range of indexes for the collection.
Methods
Add(ThemeSource)
Adds a ThemeSource with the specified value to the ThemeSourceCollection .
Declaration
public int Add(ThemeSource value)
Parameters
value
The ThemeSource to add.
Returns
The index at which the new element was inserted.
AddRange(ThemeSourceCollection)
Adds the contents of another ThemeSourceCollection to the end of the collection.
Declaration
public void AddRange(ThemeSourceCollection value)
Parameters
value
A ThemeSourceCollection containing the objects to add to the collection.
AddRange(ThemeSource[])
Copies the elements of an array to the end of the ThemeSourceCollection.
Declaration
public void AddRange(ThemeSource[] value)
Parameters
value
An array of type ThemeSource containing the objects to add to the collection.
Contains(ThemeSource)
Gets a value indicating whether the ThemeSourceCollection contains the specified ThemeSource.
Declaration
public bool Contains(ThemeSource value)
Parameters
value
The ThemeSource to locate.
Returns
true if the ThemeSource is contained in the collection; otherwise, false.
CopyTo(ThemeSource[], int)
Copies the ThemeSourceCollection values to a one-dimensional Array instance at the specified index.
Declaration
public void CopyTo(ThemeSource[] array, int index)
Parameters
array
The one-dimensional Array that is the destination of the values copied from ThemeSourceCollection .
index
The index in array where copying begins.
Exceptions
array is multidimensional.
-or-
The number of elements in the ThemeSourceCollection is greater than the available space between index and the end of array.
array is null.
index is less than array's lowbound.
GetEnumerator()
Returns an enumerator that can iterate through the ThemeSourceCollection .
Declaration
public ThemeSourceCollection.ThemeSourceEnumerator GetEnumerator()
Returns
ThemeSourceCollection.ThemeSourceEnumerator
None.
IndexOf(ThemeSource)
Returns the index of a ThemeSource in the ThemeSourceCollection .
Declaration
public int IndexOf(ThemeSource value)
Parameters
value
The ThemeSource to locate.
Returns
The index of the ThemeSource of value in the
ThemeSourceCollection, if found; otherwise, -1.
Insert(int, ThemeSource)
Inserts a ThemeSource into the ThemeSourceCollection at the specified index.
Declaration
public void Insert(int index, ThemeSource value)
Parameters
index
The zero-based index where value should be inserted.
value
The ThemeSource to insert.
OnClearComplete()
Declaration
protected override void OnClearComplete()
Overrides
Remove(ThemeSource)
Removes a specific ThemeSource from the ThemeSourceCollection .
Declaration
public void Remove(ThemeSource value)
Parameters
value
The ThemeSource to remove from the ThemeSourceCollection .
Exceptions
value is not found in the Collection.