Class
RadItemOwnerCollection

A collection that stores RadItem objects and manages their ownership relationships with a parent RadElement.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class RadItemOwnerCollection : RadItemCollection, IList, ICollection, IEnumerable

Inheritance: objectCollectionBaseRadItemCollectionRadItemOwnerCollection

Derived Classes: DataFilterItemOwnerCollectionGridGroupHeaderListsCollectionRadItemOwnerGenericCollection<T>RadRibbonBarCommandTabCollection

Implements: ICollectionIEnumerableIList

Inherited Members RadItemCollection.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[int]RadItemCollection.FirstRadItemCollection.LastRadItemCollection.this[string]RadItemCollection.ItemsChangedCollectionBase.Clear()CollectionBase.RemoveAt(int)CollectionBase.OnInsert(int, object)CollectionBase.InnerListCollectionBase.ListCollectionBase.CapacityCollectionBase.Count

Constructors

RadItemOwnerCollection()

Initializes a new instance of the RadItemOwnerCollection class.

Declaration

cs-api-definition
public RadItemOwnerCollection()

RadItemOwnerCollection(RadElement)

Initializes a new instance of the RadItemOwnerCollection class with the specified owner.

Declaration

cs-api-definition
public RadItemOwnerCollection(RadElement owner)

Parameters

owner

RadElement

The RadElement that will own items in this collection.

RadItemOwnerCollection(RadItemOwnerCollection)

Initializes a new instance of the RadItemOwnerCollection class based on another collection.

Declaration

cs-api-definition
public RadItemOwnerCollection(RadItemOwnerCollection value)

Parameters

value

RadItemOwnerCollection

A RadItemOwnerCollection from which the contents are copied.

RadItemOwnerCollection(RadItem[])

Initializes a new instance of the RadItemOwnerCollection class containing an array of RadItem objects.

Declaration

cs-api-definition
public RadItemOwnerCollection(RadItem[] value)

Parameters

value

RadItem[]

An array of RadItem objects with which to initialize the collection.

Properties

Owner

Gets or sets the owner of the collection.

Declaration

cs-api-definition
public RadElement Owner { get; set; }

Property Value

RadElement

The RadElement that owns items in this collection.

Remarks

When the owner changes, the collection automatically removes all items from the previous owner's children collection and adds them to the new owner's children collection to maintain consistency.

Methods

OnClear()

Declaration

cs-api-definition
protected override void OnClear()

Overrides RadItemCollection.OnClear()

OnInsertComplete(int, object)

Declaration

cs-api-definition
protected override void OnInsertComplete(int index, object value)

Parameters

index

int

value

object

Overrides RadItemCollection.OnInsertComplete(int, object)

OnItemsChanged(RadItem, ItemsChangeOperation)

Declaration

cs-api-definition
protected override void OnItemsChanged(RadItem target, ItemsChangeOperation operation)

Parameters

target

RadItem

operation

ItemsChangeOperation

Overrides RadItemCollection.OnItemsChanged(RadItem, ItemsChangeOperation)

OnRemoveComplete(int, object)

Declaration

cs-api-definition
protected override void OnRemoveComplete(int index, object value)

Parameters

index

int

value

object

Overrides RadItemCollection.OnRemoveComplete(int, object)

OnSetComplete(int, object, object)

Declaration

cs-api-definition
protected override void OnSetComplete(int index, object oldValue, object newValue)

Parameters

index

int

oldValue

object

newValue

object

Overrides RadItemCollection.OnSetComplete(int, object, object)

OnSortComplete()

Declaration

cs-api-definition
protected override void OnSortComplete()

Overrides RadItemCollection.OnSortComplete()