A generic owner collection which holds RadItems.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
The RadItem subtype stored in the collection.
Syntax:
public class RadItemOwnerGenericCollection<T> : RadItemOwnerCollection, IList, ICollection, IEnumerable where T : RadItem
Inheritance: objectCollectionBaseRadItemCollectionRadItemOwnerCollectionRadItemOwnerGenericCollection<T>
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes an empty typed collection without an owner.
public RadItemOwnerGenericCollection()
Initializes an empty typed collection associated with an owner element.
public RadItemOwnerGenericCollection(RadElement owner)
The element whose children are synchronized with this collection.
Properties
Gets the first element of the collection.
public T First { get; }
Last
T
Gets the last element of the collection.
public T Last { get; }
Represents the entry at the specified index of the item.
public T this[int index] { get; set; }
The zero-based index of the entry to locate in the collection.
Property Value:The entry at the specified index of the collection.
Exceptions: ArgumentOutOfRangeExceptionindex is outside the valid range of indexes for the collection.
Methods
Adds a item with the specified value to the Telerik.WinControls.RadItemCollection .
public int Add(T value)
The item to add.
Returns:The index at which the new element was inserted.
Copies the elements of an array to the end of the RadItemCollection.
public void AddRange(params T[] value)
An array of type item containing the objects to add to the collection.
Returns the index of an item in the RadItemCollection.
public int IndexOf(T value)
The value to locate.
Returns:The index of value in the
RadItemCollection, if found; otherwise, -1.
Inserts a item into the RadItemCollection at the specified index.
public void Insert(int index, T value)
The zero-based index where value should be inserted.
The item to insert.
Removes a specific item from the RadItemCollection .
public void Remove(T value)
The item to remove from the RadItemCollection .
Exceptions: ArgumentExceptionvalue is not found in the Collection.