Class
RadItemOwnerGenericCollection<T>

A generic owner collection which holds RadItems.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Type Parameters:

T

Syntax:

cs-api-definition
public class RadItemOwnerGenericCollection<T> : RadItemOwnerCollection, IList, ICollection, IEnumerable<RadItem>, IEnumerable where T : RadItem

Inheritance: objectCollectionBaseRadItemCollectionRadItemOwnerCollectionRadItemOwnerGenericCollection<T>

Derived Classes: RadStepProgressItemOwnerCollection<T>

Implements: ICollectionIEnumerableIEnumerable<RadItem>IList

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

RadItemOwnerGenericCollection()

Declaration

cs-api-definition
public RadItemOwnerGenericCollection()

RadItemOwnerGenericCollection(RadElement)

Declaration

cs-api-definition
public RadItemOwnerGenericCollection(RadElement owner)

Parameters

owner

RadElement

Properties

First

Gets the first element of the collection.

Declaration

cs-api-definition
public T First { get; }

Property Value

T

Last

Gets the last element of the collection.

Declaration

cs-api-definition
public T Last { get; }

Property Value

T

this[int]

Represents the entry at the specified index of the item.

Declaration

cs-api-definition
public T this[int index] { get; set; }

Parameters

index

int

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

ArgumentOutOfRangeException

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

cs-api-definition
public int Add(T value)

Parameters

value

T

The item to add.

Returns

int

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

cs-api-definition
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.

Declaration

cs-api-definition
public bool Contains(T value)

Parameters

value

T

The item to locate.

Returns

bool

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

IndexOf(T)

Returns the index of an item in the RadItemCollection.

Declaration

cs-api-definition
public int IndexOf(T value)

Parameters

value

T

The value to locate.

Returns

int

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

cs-api-definition
public void Insert(int index, T value)

Parameters

index

int

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

cs-api-definition
public void Remove(T value)

Parameters

value

T

The item to remove from the RadItemCollection .

Exceptions

ArgumentException

value is not found in the Collection.