BarItems.Add(BarItem) Method
Adds the specified item to the end of the collection.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
item | BarItem | A BarItem descendant representing the item to be added. |
Returns
Type | Description |
---|---|
Int32 | A zero-based integer value representing the index of the item added. |
Remarks
The Add method adds the specified item to the BarManager’s item collection and returns its position within the collection. If the item is already contained within the collection, this method returns the item’s index within the collection.
To add several items at once, use the BarItems.AddRange method.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Add(BarItem) 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.