NavLinkCollection.Insert(Int32, ICollectionItem) Method
Inserts the specified link to the specified position within the collection.
Namespace: DevExpress.XtraNavBar
Assembly: DevExpress.XtraNavBar.v24.1.dll
NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation
Declaration
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