Collection.Insert(Int32, ICollectionItem) Method
Inserts the specified item into the specified position within the collection.
Namespace: DevExpress.XtraNavBar
Assembly: DevExpress.XtraNavBar.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
index | Int32 | An integer value specifying the zero-based index at which the item is added. |
item | ICollectionItem | An object supporting the ICollectionItem interface which is to be inserted to the collection. |
Returns
Type | Description |
---|---|
Object | An object representing the added item. |
Remarks
If the index parameter is equal to the number of items, the specified item 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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Insert(Int32, ICollectionItem) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.