New to Telerik UI for WinFormsStart a free 30-day trial

A generic owner collection which holds RadItems.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Type Parameters:

T

Syntax:

C#
public class RadItemOwnerGenericCollection<T> : RadItemOwnerCollection, IList, ICollection, IEnumerable where T : RadItem

Inheritance: objectCollectionBaseRadItemCollectionRadItemOwnerCollectionRadItemOwnerGenericCollection<T>

Derived Classes: RadStepProgressItemOwnerCollection<T>

Implements: ICollectionIEnumerableIList

Inherited Members RadItemOwnerCollection.OnItemsChanged(RadItem, ItemsChangeOperation)RadItemOwnerCollection.OnSetComplete(int, object, object)RadItemOwnerCollection.OnClear()RadItemOwnerCollection.OnInsertComplete(int, object)RadItemOwnerCollection.OnRemoveComplete(int, object)RadItemOwnerCollection.OnSortComplete()RadItemOwnerCollection.OwnerRadItemCollection.OnValidate(object)RadItemCollection.SuspendNotifications()RadItemCollection.ResumeNotifications()RadItemCollection.GetEnumerator()RadItemCollection.OnRemove(int, object)RadItemCollection.OnSet(int, object, object)RadItemCollection.OnClearComplete()RadItemCollection.OnSort()RadItemCollection.Add(RadItem)RadItemCollection.AddRange(params RadItem[])RadItemCollection.AddRange(RadItemCollection)RadItemCollection.Insert(int, RadItem)RadItemCollection.Remove(RadItem)RadItemCollection.Sort()RadItemCollection.Sort(IComparer)RadItemCollection.Sort(int, int, IComparer)RadItemCollection.Contains(RadItem)RadItemCollection.IndexOf(RadItem)RadItemCollection.CopyTo(RadItem[], int)RadItemCollection.ToArray()RadItemCollection.ItemTypesRadItemCollection.ExcludedTypesRadItemCollection.SealedTypesRadItemCollection.DefaultTypeRadItemCollection.this[string]RadItemCollection.ItemsChangedCollectionBase.Clear()CollectionBase.RemoveAt(int)CollectionBase.OnInsert(int, object)CollectionBase.InnerListCollectionBase.ListCollectionBase.CapacityCollectionBase.Count...

Constructors

C#
public RadItemOwnerGenericCollection()
C#
public RadItemOwnerGenericCollection(RadElement owner)
Parameters:ownerRadElement

Properties

Gets the first element of the collection.

C#
public T First { get; }

Gets the last element of the collection.

C#
public T Last { get; }

Represents the entry at the specified index of the item.

C#
public T this[int index] { get; set; }
Parameters:indexint

The zero-based index of the entry to locate in the collection.

Property Value:

The entry at the specified index of the collection.

Exceptions:

ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

Methods

Adds a item with the specified value to the Telerik.WinControls.RadItemCollection .

C#
public int Add(T value)
Parameters:valueT

The item to add.

Returns:

int

The index at which the new element was inserted.

Copies the elements of an array to the end of the RadItemCollection.

C#
public void AddRange(params T[] value)
Parameters:valueT[]

An array of type item containing the objects to add to the collection.

Gets a value indicating whether the RadItemCollection contains the specified item.

C#
public bool Contains(T value)
Parameters:valueT

The item to locate.

Returns:

bool

true if the item is contained in the collection; otherwise, false.

Returns the index of an item in the RadItemCollection.

C#
public int IndexOf(T value)
Parameters:valueT

The value to locate.

Returns:

int

The index of value in the RadItemCollection, if found; otherwise, -1.

Inserts a item into the RadItemCollection at the specified index.

C#
public void Insert(int index, T value)
Parameters:indexint

The zero-based index where value should be inserted.

valueT

The item to insert.

Removes a specific item from the RadItemCollection .

C#
public void Remove(T value)
Parameters:valueT

The item to remove from the RadItemCollection .

Exceptions:

ArgumentException

value is not found in the Collection.