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