Class RadElementCollection
A collection that stores RadElement objects.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class RadElementCollection : CollectionBase, IList, ICollection, IEnumerable<RadElement>, IEnumerable
Constructors
RadElementCollection(RadElement)
Initializes a new instance of the RadElementCollection.
Declaration
public RadElementCollection(RadElement owner)
Parameters
RadElement
owner
|
RadElementCollection(RadElement, RadElement[])
Initializes a new instance of RadElementCollection containing any array of RadElement objects.
Declaration
public RadElementCollection(RadElement owner, RadElement[] value)
Parameters
RadElement
owner
|
RadElement[]
value
A array of RadElement objects with which to intialize the collection |
RadElementCollection(RadElement, RadElementCollection)
Initializes a new instance of the RadElementCollection based on another RadElementCollection.
Declaration
public RadElementCollection(RadElement owner, RadElementCollection value)
Parameters
RadElement
owner
|
RadElementCollection
value
A RadElementCollection from which the contents are copied |
Fields
checkForAlreadyAddedItems
Declaration
public bool checkForAlreadyAddedItems
Field Value
System.Boolean
|
Properties
Item[Int32]
Represents the entry at the specified index of the RadElement.
Declaration
public RadElement this[int index] { get; set; }
Parameters
System.Int32
index
The zero-based index of the entry to locate in the collection. |
Property Value
RadElement
The entry at the specified index of the collection. |
Exceptions
System.ArgumentOutOfRangeException
|
Owner
Methods
Add(RadElement)
Adds a RadElement with the specified value to the RadElementCollection .
Declaration
public int Add(RadElement value)
Parameters
RadElement
value
The RadElement to add. |
Returns
System.Int32
The index at which the new element was inserted. |
AddRange(IList<RadElement>)
Copies the elements of an IList of RadElements to the end of the RadElementCollection.
Declaration
public void AddRange(IList<RadElement> value)
Parameters
System.Collections.Generic.IList<RadElement>
value
An List of type RadElement containing the objects to add to the collection. |
AddRange(RadElement[])
Copies the elements of an array to the end of the RadElementCollection.
Declaration
public void AddRange(params RadElement[] value)
Parameters
RadElement[]
value
An array of type RadElement containing the objects to add to the collection. |
AddRange(RadElementCollection)
Adds the contents of another RadElementCollection to the end of the collection.
Declaration
public void AddRange(RadElementCollection value)
Parameters
RadElementCollection
value
A RadElementCollection containing the objects to add to the collection. |
BinarySearch(Int32, Int32, RadElement, IComparer)
Declaration
public int BinarySearch(int index, int count, RadElement value, IComparer comparer)
Parameters
System.Int32
index
|
System.Int32
count
|
RadElement
value
|
System.Collections.IComparer
comparer
|
Returns
System.Int32
|
Contains(RadElement)
Gets a value indicating whether the RadElementCollection contains the specified RadElement.
Declaration
public bool Contains(RadElement value)
Parameters
RadElement
value
The RadElement to locate. |
Returns
System.Boolean
true if the RadElement is contained in the collection; otherwise, false. |
CopyTo(RadElement[], Int32)
Copies the RadElementCollection values to a one-dimensional System.Array instance at the specified index.
Declaration
public void CopyTo(RadElement[] array, int index)
Parameters
RadElement[]
array
The one-dimensional System.Array that is the destination of the values copied from RadElementCollection . |
System.Int32
index
The index in |
Exceptions
System.ArgumentException
-or- The number of elements in the RadElementCollection is greater than the available space between |
System.ArgumentNullException
|
System.ArgumentOutOfRangeException
|
GetEnumerator()
Returns an enumerator that can iterate through the RadElementCollection .
Declaration
public RadElementCollection.RadElementEnumerator GetEnumerator()
Returns
RadElementCollection.RadElementEnumerator
None. |
IndexOf(RadElement)
Returns the index of a RadElement in the RadElementCollection .
Declaration
public int IndexOf(RadElement value)
Parameters
RadElement
value
The RadElement to locate. |
Returns
System.Int32
The index of the RadElement of |
Insert(Int32, RadElement)
Inserts a RadElement into the RadElementCollection at the specified index.
Declaration
public void Insert(int index, RadElement value)
Parameters
System.Int32
index
The zero-based index where |
RadElement
value
|
Move(Int32, Int32)
Moves the element at position a given position to a new position
Declaration
public void Move(int indexFrom, int indexTo)
Parameters
System.Int32
indexFrom
The zero-based index of the element to move |
System.Int32
indexTo
The zero-based index of the position where the element is to be placed |
OnClear()
Declaration
protected override void OnClear()
Overrides
OnClearComplete()
Declaration
protected override void OnClearComplete()
Overrides
OnInsert(Int32, Object)
Declaration
protected override void OnInsert(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Overrides
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Overrides
OnRemove(Int32, Object)
Declaration
protected override void OnRemove(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
OnSet(Int32, Object, Object)
Declaration
protected override void OnSet(int index, object oldValue, object newValue)
Parameters
System.Int32
index
|
System.Object
oldValue
|
System.Object
newValue
|
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
OnValidate(Object)
Declaration
protected override void OnValidate(object value)
Parameters
System.Object
value
|
Overrides
Remove(RadElement)
Removes a specific RadElement from the RadElementCollection .
Declaration
public void Remove(RadElement value)
Parameters
RadElement
value
The RadElement to remove from the RadElementCollection . |
Exceptions
System.ArgumentException
|
Sort()
Sorts the elements in the entire RadElementCollection using the IComparable implementation of each element.
Declaration
public void Sort()
Sort(IComparer)
Sorts the elements in the entire RadElementCollection using the specified comparer.
Declaration
public void Sort(IComparer comparer)
Parameters
System.Collections.IComparer
comparer
The IComparer implementation to use when comparing elements. |
Sort(Int32, Int32, IComparer)
Sorts the elements in a range of elements in RadElementCollection using the specified comparer.
Declaration
public void Sort(int index, int count, IComparer comparer)
Parameters
System.Int32
index
The zero-based starting index of the range to sort. |
System.Int32
count
The length of the range to sort. |
System.Collections.IComparer
comparer
The IComparer implementation to use when comparing elements. |
SwitchItems(Int32, Int32)
Declaration
public void SwitchItems(int indexFrom, int indexTo)
Parameters
System.Int32
indexFrom
|
System.Int32
indexTo
|
Explicit Interface Implementations
IEnumerable<RadElement>.GetEnumerator()
Declaration
IEnumerator<RadElement> IEnumerable<RadElement>.GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<RadElement>
|