BarItems.Add(BarItem) Method
Adds the specified item to the end of the collection.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
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.
See Also