BarItems.FindById(Int32) Method
In This Article
Returns an item identified by its unique identifier.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
item |
Int32 | A zero-based integer specifying the item’s unique identifier. |
#Returns
Type | Description |
---|---|
Bar |
A Bar |
#Remarks
The FindById method scans the collection starting at the first element and returns the item whose BarItem.Id property value matches the itemId parameter.
This method returns null (Nothing in Visual Basic) in the following cases:
- the item with the unique identifier specified is not found;
- the itemId parameter is -1.
See Also