Skip to main content

NavLinkCollection.Insert(Int32, ICollectionItem) Method

Inserts the specified link to the specified position within the collection.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v23.2.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation

Declaration

public override object Insert(
    int index,
    ICollectionItem item
)

Parameters

Name Type Description
index Int32

An integer value specifying the zero-based index of the inserted link within the collection.

item ICollectionItem

An ICollectionItem object representing the item to which the inserted link refers.

Returns

Type Description
Object

An object representing the inserted link.

Remarks

If the index parameter is equal to the number of items within the collection, the specified link is added to the end of the collection. If the specified index is either negative or exceeds the number of items, an exception is raised.

See Also