New to Telerik UI for WinFormsStart a free 30-day trial

A collection that stores ThemeSource objects.

Definition

Constructors

Initializes a new instance of theThemeSourceCollection.

C#
public ThemeSourceCollection(RadThemeManager ownerManager)
Parameters:ownerManagerRadThemeManager

Owner component

Initializes a new instance of the ThemeSourceCollection containing any array of ThemeSource objects.

C#
public ThemeSourceCollection(ThemeSource[] value, RadThemeManager ownerManager)
Parameters:valueThemeSource[]

A array of ThemeSource objects with which to intialize the collection

ownerManagerRadThemeManager

Owner component

Initializes a new instance of the ThemeSourceCollection based on another ThemeSourceCollection.

C#
public ThemeSourceCollection(ThemeSourceCollection value, RadThemeManager ownerManager)
Parameters:valueThemeSourceCollection

A ThemeSourceCollection from which the contents are copied

ownerManagerRadThemeManager

Owner component

Fields

C#
public ThemeSourcesChangedDelegate ThemeSourcesChanged

Properties

C#
public RadThemeManager OwnerManager { get; }

Represents the entry at the specified index of the ThemeSource.

C#
public ThemeSource this[int index] { get; set; }
Parameters:indexint

The zero-based index of the entry to locate in the collection.

Property Value:

The entry at the specified index of the collection.

Exceptions:

ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

Methods

Adds a ThemeSource with the specified value to the ThemeSourceCollection .

C#
public int Add(ThemeSource value)
Parameters:valueThemeSource

The ThemeSource to add.

Returns:

int

The index at which the new element was inserted.

Copies the elements of an array to the end of the ThemeSourceCollection.

C#
public void AddRange(ThemeSource[] value)
Parameters:valueThemeSource[]

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.

C#
public void AddRange(ThemeSourceCollection value)
Parameters:valueThemeSourceCollection

A ThemeSourceCollection containing the objects to add to the collection.

Gets a value indicating whether the ThemeSourceCollection contains the specified ThemeSource.

C#
public bool Contains(ThemeSource value)
Parameters:valueThemeSource

The ThemeSource to locate.

Returns:

bool

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.

C#
public void CopyTo(ThemeSource[] array, int index)
Parameters:arrayThemeSource[]

The one-dimensional Array that is the destination of the values copied from ThemeSourceCollection .

indexint

The index in array where copying begins.

Exceptions:

ArgumentException

array is multidimensional.

-or-

The number of elements in the ThemeSourceCollection is greater than the available space between index and the end of array.

ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than array's lowbound.

Returns an enumerator that can iterate through the ThemeSourceCollection .

C#
public ThemeSourceCollection.ThemeSourceEnumerator GetEnumerator()
Returns:

ThemeSourceCollection.ThemeSourceEnumerator

None.

Returns the index of a ThemeSource in the ThemeSourceCollection .

C#
public int IndexOf(ThemeSource value)
Parameters:valueThemeSource

The ThemeSource to locate.

Returns:

int

The index of the ThemeSource of value in the ThemeSourceCollection, if found; otherwise, -1.

Inserts a ThemeSource into the ThemeSourceCollection at the specified index.

C#
public void Insert(int index, ThemeSource value)
Parameters:indexint

The zero-based index where value should be inserted.

valueThemeSource

The ThemeSource to insert.

C#
protected override void OnClearComplete()

Overrides: CollectionBase.OnClearComplete()

C#
protected override void OnInsertComplete(int index, object value)
Parameters:indexintvalueobject

Overrides: CollectionBase.OnInsertComplete(int, object)

C#
protected override void OnRemoveComplete(int index, object value)
Parameters:indexintvalueobject

Overrides: CollectionBase.OnRemoveComplete(int, object)

C#
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters:indexintoldValueobjectnewValueobject

Overrides: CollectionBase.OnSetComplete(int, object, object)

Removes a specific ThemeSource from the ThemeSourceCollection .

C#
public void Remove(ThemeSource value)
Parameters:valueThemeSource

The ThemeSource to remove from the ThemeSourceCollection .

Exceptions:

ArgumentException

value is not found in the Collection.