Back to Devexpress

ICollectionItem.Collection Property

windowsforms-devexpress-dot-xtranavbar-dot-icollectionitem.md

latest2.2 KB
Original Source

ICollectionItem.Collection Property

When implemented by a class, gets the collection to which an item belongs.

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
Collection Collection { get; }
vb
ReadOnly Property Collection As Collection

Property Value

TypeDescription
Collection

An object supporting the System.Collections.ICollection interface representing the collection which owns an item. null ( Nothing in Visual Basic) if the item doesn’t belong to the collection.

|

Remarks

The base class for collection objects used in the NavBarControl is represented by the Collection class. When an item is added to the collection, the item’s ICollectionItem.SetCollection method is called in order to assign the collection to which it belongs. The assigned value must then be returned by the Collection property.

When an item is being removed from the collection, null ( Nothing in Visual Basic) is transmitted via the ICollectionItem.SetCollection method.

See Also

SetCollection(Collection)

Collection

ICollectionItem Interface

ICollectionItem Members

DevExpress.XtraNavBar Namespace