Class RadItemReadOnlyCollection
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Elements
Assembly: Telerik.WinControls.dll
Syntax
public class RadItemReadOnlyCollection : ReadOnlyCollectionBase, ICollection, IEnumerable<RadItem>, IEnumerable
  Constructors
RadItemReadOnlyCollection(RadItem[])
Initializes a new instance of RadItemCollection containing any array of RadElement objects.
Declaration
public RadItemReadOnlyCollection(RadItem[] value)
  Parameters
| 
        RadItem[]
        value
         A array of RadElement objects with which to intialize the collection  | 
    
RadItemReadOnlyCollection(RadItemOwnerCollection)
Initializes a new instance of RadItemCollection based on another RadItemCollection.
Declaration
public RadItemReadOnlyCollection(RadItemOwnerCollection value)
  Parameters
| 
        RadItemOwnerCollection
        value
         A RadItemCollection from which the contents are copied  | 
    
Properties
Item[Int32]
Represents the entry at the specified index of the RadElement.
Declaration
public RadItem this[int index] { get; }
  Parameters
| 
        System.Int32
        index
         The zero-based index of the entry to locate in the collection.  | 
    
Property Value
| 
        RadItem
         The entry at the specified index of the collection.  | 
    
Exceptions
| 
        System.ArgumentOutOfRangeException
         
  | 
    
Methods
Contains(RadItem)
Gets a value indicating whether the RadItemCollection contains the specified RadElement.
Declaration
public bool Contains(RadItem value)
  Parameters
| 
        RadItem
        value
         The RadElement to locate.  | 
    
Returns
| 
        System.Boolean
         true if the RadElement is contained in the collection; otherwise, false.  | 
    
CopyTo(RadItem[], Int32)
Copies the RadItemCollection values to a one-dimensional System.Array instance at the specified index.
Declaration
public void CopyTo(RadItem[] array, int index)
  Parameters
| 
        RadItem[]
        array
         The one-dimensional System.Array that is the destination of the values copied from RadItemCollection .  | 
    
| 
        System.Int32
        index
         The index in   | 
    
Exceptions
| 
        System.ArgumentException
         
 -or- The number of elements in the RadItemCollection is greater than the available space between   | 
    
| 
        System.ArgumentNullException
         
  | 
    
| 
        System.ArgumentOutOfRangeException
         
  | 
    
GetEnumerator()
Declaration
public RadItemReadOnlyCollection.RadItemReadOnlyEnumerator GetEnumerator()
  Returns
| 
        RadItemReadOnlyCollection.RadItemReadOnlyEnumerator
         
  | 
    
IndexOf(RadItem)
Returns the index of a RadElement in the RadItemCollection .
Declaration
public int IndexOf(RadItem value)
  Parameters
| 
        RadItem
        value
         The RadElement to locate.  | 
    
Returns
| 
        System.Int32
         The index of the RadElement of   | 
    
OnItemsChanged(RadItemCollection, RadItem, ItemsChangeOperation)
Declaration
protected virtual void OnItemsChanged(RadItemCollection changed, RadItem target, ItemsChangeOperation operation)
  Parameters
| 
        RadItemCollection
        changed
         
  | 
    
| 
        RadItem
        target
         
  | 
    
| 
        ItemsChangeOperation
        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
| 
        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.  | 
    
ToArray()
Retrieves an array of the items in the collection.
Declaration
public RadItem[] ToArray()
  Returns
| 
        RadItem[]
         
  | 
    
Events
ItemsChanged
Explicit Interface Implementations
IEnumerable<RadItem>.GetEnumerator()
Declaration
IEnumerator<RadItem> IEnumerable<RadItem>.GetEnumerator()
  Returns
| 
        System.Collections.Generic.IEnumerator<RadItem>
         
  |