Class
ThemeSourceCollection

A collection that stores ThemeSource objects.

Definition

Constructors

ThemeSourceCollection(RadThemeManager)

Initializes a new instance of theThemeSourceCollection.

Declaration

cs-api-definition
public ThemeSourceCollection(RadThemeManager ownerManager)

Parameters

ownerManager

RadThemeManager

Owner component

ThemeSourceCollection(ThemeSourceCollection, RadThemeManager)

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

Declaration

cs-api-definition
public ThemeSourceCollection(ThemeSourceCollection value, RadThemeManager ownerManager)

Parameters

value

ThemeSourceCollection

A ThemeSourceCollection from which the contents are copied

ownerManager

RadThemeManager

Owner component

ThemeSourceCollection(ThemeSource[], RadThemeManager)

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

Declaration

cs-api-definition
public ThemeSourceCollection(ThemeSource[] value, RadThemeManager ownerManager)

Parameters

value

ThemeSource[]

A array of ThemeSource objects with which to intialize the collection

ownerManager

RadThemeManager

Owner component

Fields

ThemeSourcesChanged

Declaration

cs-api-definition
public ThemeSourcesChangedDelegate ThemeSourcesChanged

Field Value

ThemeSourcesChangedDelegate

Properties

OwnerManager

Declaration

cs-api-definition
public RadThemeManager OwnerManager { get; }

Property Value

RadThemeManager

this[int]

Represents the entry at the specified index of the ThemeSource.

Declaration

cs-api-definition
public ThemeSource this[int index] { get; set; }

Parameters

index

int

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

ArgumentOutOfRangeException

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

cs-api-definition
public int Add(ThemeSource value)

Parameters

value

ThemeSource

The ThemeSource to add.

Returns

int

The index at which the new element was inserted.

AddRange(ThemeSourceCollection)

Adds the contents of another ThemeSourceCollection to the end of the collection.

Declaration

cs-api-definition
public void AddRange(ThemeSourceCollection value)

Parameters

value

ThemeSourceCollection

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

cs-api-definition
public void AddRange(ThemeSource[] value)

Parameters

value

ThemeSource[]

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

cs-api-definition
public bool Contains(ThemeSource value)

Parameters

value

ThemeSource

The ThemeSource to locate.

Returns

bool

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

cs-api-definition
public void CopyTo(ThemeSource[] array, int index)

Parameters

array

ThemeSource[]

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

index

int

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.

GetEnumerator()

Returns an enumerator that can iterate through the ThemeSourceCollection .

Declaration

cs-api-definition
public ThemeSourceCollection.ThemeSourceEnumerator GetEnumerator()

Returns

ThemeSourceCollection.ThemeSourceEnumerator

None.

IndexOf(ThemeSource)

Returns the index of a ThemeSource in the ThemeSourceCollection .

Declaration

cs-api-definition
public int IndexOf(ThemeSource value)

Parameters

value

ThemeSource

The ThemeSource to locate.

Returns

int

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

cs-api-definition
public void Insert(int index, ThemeSource value)

Parameters

index

int

The zero-based index where value should be inserted.

value

ThemeSource

The ThemeSource to insert.

OnClearComplete()

Declaration

cs-api-definition
protected override void OnClearComplete()

Overrides CollectionBase.OnClearComplete()

OnInsertComplete(int, object)

Declaration

cs-api-definition
protected override void OnInsertComplete(int index, object value)

Parameters

index

int

value

object

Overrides CollectionBase.OnInsertComplete(int, object)

OnRemoveComplete(int, object)

Declaration

cs-api-definition
protected override void OnRemoveComplete(int index, object value)

Parameters

index

int

value

object

Overrides CollectionBase.OnRemoveComplete(int, object)

OnSetComplete(int, object, object)

Declaration

cs-api-definition
protected override void OnSetComplete(int index, object oldValue, object newValue)

Parameters

index

int

oldValue

object

newValue

object

Overrides CollectionBase.OnSetComplete(int, object, object)

Remove(ThemeSource)

Removes a specific ThemeSource from the ThemeSourceCollection .

Declaration

cs-api-definition
public void Remove(ThemeSource value)

Parameters

value

ThemeSource

The ThemeSource to remove from the ThemeSourceCollection .

Exceptions

ArgumentException

value is not found in the Collection.