Class ThemeSourceCollection
A collection that stores ThemeSource objects.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class ThemeSourceCollection : CollectionBase, IList, ICollection, IEnumerable
Constructors
ThemeSourceCollection(RadThemeManager)
Initializes a new instance of theThemeSourceCollection.
Declaration
public ThemeSourceCollection(RadThemeManager ownerManager)
Parameters
RadThemeManager
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
ThemeSource[]
value
A array of ThemeSource objects with which to intialize the collection |
RadThemeManager
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
ThemeSourceCollection
value
A ThemeSourceCollection from which the contents are copied |
RadThemeManager
ownerManager
Owner component |
Fields
ThemeSourcesChanged
Declaration
public ThemeSourcesChangedDelegate ThemeSourcesChanged
Field Value
ThemeSourcesChangedDelegate
|
Properties
Item[Int32]
Represents the entry at the specified index of the ThemeSource.
Declaration
public ThemeSource this[int index] { get; set; }
Parameters
System.Int32
index
The zero-based index of the entry to locate in the collection. |
Property Value
ThemeSource
The entry at the specified index of the collection. |
Exceptions
System.ArgumentOutOfRangeException
|
OwnerManager
Methods
Add(ThemeSource)
Adds a ThemeSource with the specified value to the ThemeSourceCollection .
Declaration
public int Add(ThemeSource value)
Parameters
ThemeSource
value
The ThemeSource to add. |
Returns
System.Int32
The index at which the new element was inserted. |
AddRange(ThemeSource[])
Copies the elements of an array to the end of the ThemeSourceCollection.
Declaration
public void AddRange(ThemeSource[] value)
Parameters
ThemeSource[]
value
An array of type ThemeSource containing the objects to add to the collection. |
AddRange(ThemeSourceCollection)
Adds the contents of another ThemeSourceCollection to the end of the collection.
Declaration
public void AddRange(ThemeSourceCollection value)
Parameters
ThemeSourceCollection
value
A ThemeSourceCollection 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
ThemeSource
value
The ThemeSource to locate. |
Returns
System.Boolean
true if the ThemeSource is contained in the collection; otherwise, false. |
CopyTo(ThemeSource[], Int32)
Copies the ThemeSourceCollection values to a one-dimensional System.Array instance at the specified index.
Declaration
public void CopyTo(ThemeSource[] array, int index)
Parameters
ThemeSource[]
array
The one-dimensional System.Array that is the destination of the values copied from ThemeSourceCollection . |
System.Int32
index
The index in |
Exceptions
System.ArgumentException
-or- The number of elements in the ThemeSourceCollection is greater than the available space between |
System.ArgumentNullException
|
System.ArgumentOutOfRangeException
|
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
ThemeSource
value
The ThemeSource to locate. |
Returns
System.Int32
The index of the ThemeSource of |
Insert(Int32, ThemeSource)
Inserts a ThemeSource into the ThemeSourceCollection at the specified index.
Declaration
public void Insert(int index, ThemeSource value)
Parameters
System.Int32
index
The zero-based index where |
ThemeSource
value
|
OnClearComplete()
Declaration
protected override void OnClearComplete()
Overrides
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Overrides
OnRemoveComplete(Int32, Object)
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Overrides
OnSetComplete(Int32, Object, Object)
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
System.Int32
index
|
System.Object
oldValue
|
System.Object
newValue
|
Overrides
Remove(ThemeSource)
Removes a specific ThemeSource from the ThemeSourceCollection .
Declaration
public void Remove(ThemeSource value)
Parameters
ThemeSource
value
The ThemeSource to remove from the ThemeSourceCollection . |
Exceptions
System.ArgumentException
|