Class RadItemOwnerGenericCollection<T>
A generic owner collection which holds RadItems.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadItemOwnerGenericCollection<T> : RadItemOwnerCollection, IList, ICollection, IEnumerable<RadItem>, IEnumerable where T : RadItem
Type Parameters
T
|
Constructors
RadItemOwnerGenericCollection()
Declaration
public RadItemOwnerGenericCollection()
RadItemOwnerGenericCollection(RadElement)
Properties
First
Gets the first element of the collection.
Declaration
public T First { get; }
Property Value
T
|
Item[Int32]
Represents the entry at the specified index of the item.
Declaration
public T this[int index] { get; set; }
Parameters
System.Int32
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
System.ArgumentOutOfRangeException
|
Last
Gets the last element of the collection.
Declaration
public T Last { get; }
Property Value
T
|
Methods
Add(T)
Adds a item with the specified value to the Telerik.WinControls.RadItemCollection .
Declaration
public int Add(T value)
Parameters
T
value
The item to add. |
Returns
System.Int32
The index at which the new element was inserted. |
AddRange(T[])
Copies the elements of an array to the end of the RadItemCollection.
Declaration
public void AddRange(params T[] value)
Parameters
T[]
value
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.
Declaration
public bool Contains(T value)
Parameters
T
value
The item to locate. |
Returns
System.Boolean
true if the item is contained in the collection; otherwise, false. |
IndexOf(T)
Returns the index of an item in the RadItemCollection.
Declaration
public int IndexOf(T value)
Parameters
T
value
The value to locate. |
Returns
System.Int32
The index of |
Insert(Int32, T)
Inserts a item into the RadItemCollection at the specified index.
Declaration
public void Insert(int index, T value)
Parameters
System.Int32
index
The zero-based index where |
T
value
|
Remove(T)
Removes a specific item from the RadItemCollection .
Declaration
public void Remove(T value)
Parameters
T
value
The item to remove from the RadItemCollection . |
Exceptions
System.ArgumentException
|