ClassRadItemReadOnlyCollection
Definition
Namespace:Telerik.WinControls.Elements
Assembly:Telerik.WinControls.dll
Syntax:
[ListBindable(false)]
public class RadItemReadOnlyCollection : ReadOnlyCollectionBase, ICollection, IEnumerable
Inheritance: objectReadOnlyCollectionBaseRadItemReadOnlyCollection
Implements:
Inherited Members
Constructors
RadItemReadOnlyCollection(RadItemOwnerCollection)
Initializes a new instance of RadItemCollection based on another RadItemCollection.
Declaration
public RadItemReadOnlyCollection(RadItemOwnerCollection value)
Parameters
value
A RadItemCollection from which the contents are copied
RadItemReadOnlyCollection(RadItem[])
Initializes a new instance of RadItemCollection containing any array of RadElement objects.
Declaration
public RadItemReadOnlyCollection(RadItem[] value)
Parameters
value
RadItem[]
A array of RadElement objects with which to intialize the collection
Properties
this[int]
Represents the entry at the specified index of the RadElement.
Declaration
public RadItem this[int index] { get; }
Parameters
index
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
Contains(RadItem)
Gets a value indicating whether the RadItemCollection contains the specified RadElement.
Declaration
public bool Contains(RadItem value)
Parameters
value
The RadElement to locate.
Returns
true if the RadElement is contained in the collection; otherwise, false.
CopyTo(RadItem[], int)
Copies the RadItemCollection values to a one-dimensional Array instance at the specified index.
Declaration
public void CopyTo(RadItem[] array, int index)
Parameters
array
RadItem[]
The one-dimensional Array that is the destination of the values copied from RadItemCollection .
index
The index in array where copying begins.
Exceptions
array is multidimensional.
-or-
The number of elements in the RadItemCollection is greater than the available space between index and the end of array.
array is null.
index is less than array's lowbound.
GetEnumerator()
Declaration
public RadItemReadOnlyCollection.RadItemReadOnlyEnumerator GetEnumerator()
Returns
IndexOf(RadItem)
Returns the index of a RadElement in the RadItemCollection .
Declaration
public int IndexOf(RadItem value)
Parameters
value
The RadElement to locate.
Returns
The index of the RadElement of value in the
RadItemCollection, if found; otherwise, -1.
OnItemsChanged(RadItemCollection, RadItem, ItemsChangeOperation)
Declaration
protected virtual void OnItemsChanged(RadItemCollection changed, RadItem target, ItemsChangeOperation operation)
Parameters
changed
target
operation
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
comparer
The IComparer implementation to use when comparing elements.
Sort(int, int, IComparer)
Sorts the elements in a range of elements in RadElementCollection using the specified comparer.
Events
ItemsChanged
Declaration
public event ItemChangedDelegate ItemsChanged
Event Value