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