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
Initializes a new instance of theThemeSourceCollection.
public ThemeSourceCollection(RadThemeManager ownerManager)
Owner component
Initializes a new instance of the ThemeSourceCollection containing any array of ThemeSource objects.
public ThemeSourceCollection(ThemeSource[] value, RadThemeManager ownerManager)
A array of ThemeSource objects with which to intialize the collection
ownerManagerRadThemeManagerOwner component
Initializes a new instance of the ThemeSourceCollection based on another ThemeSourceCollection.
public ThemeSourceCollection(ThemeSourceCollection value, RadThemeManager ownerManager)
A ThemeSourceCollection from which the contents are copied
ownerManagerRadThemeManagerOwner component
Fields
public ThemeSourcesChangedDelegate ThemeSourcesChanged
Properties
public RadThemeManager OwnerManager { get; }
Represents the entry at the specified index of the ThemeSource.
public ThemeSource this[int index] { get; set; }
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
Adds a ThemeSource with the specified value to the ThemeSourceCollection .
public int Add(ThemeSource value)
The ThemeSource to add.
Returns:The index at which the new element was inserted.
Copies the elements of an array to the end of the ThemeSourceCollection.
public void AddRange(ThemeSource[] value)
An array of type ThemeSource containing the objects to add to the collection.
Adds the contents of another ThemeSourceCollection to the end of the collection.
public void AddRange(ThemeSourceCollection value)
A ThemeSourceCollection containing the objects to add to the collection.
Gets a value indicating whether the ThemeSourceCollection contains the specified ThemeSource.
public bool Contains(ThemeSource value)
The ThemeSource to locate.
Returns:true if the ThemeSource is contained in the collection; otherwise, false.
Copies the ThemeSourceCollection values to a one-dimensional Array instance at the specified index.
public void CopyTo(ThemeSource[] array, int index)
The one-dimensional Array that is the destination of the values copied from ThemeSourceCollection .
indexintThe index in array where copying begins.
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.
Returns an enumerator that can iterate through the ThemeSourceCollection .
public ThemeSourceCollection.ThemeSourceEnumerator GetEnumerator()
ThemeSourceCollection.ThemeSourceEnumerator
None.
Returns the index of a ThemeSource in the ThemeSourceCollection .
public int IndexOf(ThemeSource value)
The ThemeSource to locate.
Returns:The index of the ThemeSource of value in the
ThemeSourceCollection, if found; otherwise, -1.
Inserts a ThemeSource into the ThemeSourceCollection at the specified index.
public void Insert(int index, ThemeSource value)
The zero-based index where value should be inserted.
The ThemeSource to insert.
protected override void OnClearComplete()
Overrides:
Removes a specific ThemeSource from the ThemeSourceCollection .
public void Remove(ThemeSource value)
The ThemeSource to remove from the ThemeSourceCollection .
Exceptions:value is not found in the Collection.