BarItems.Add(BarItem) Method
In This Article
Adds the specified item to the end of the collection.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
item | Bar |
A Bar |
#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