Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarItems.Item[String] Property

Gets an individual bar items by its name.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public BarItem this[string name] { get; }

#Parameters

Name Type Description
name String

A string value that represents the name of the item to be obtained. This value is compared to the BarItem.Name property of items when searching.

#Property Value

Type Description
BarItem

A BarItem object representing the bar item located at the specified position within the collection. null (Nothing in Visual Basic) if the specified item has not been found.

#Remarks

The Item property enables you to use indexer notation when accessing an individual item by its name. The collection of items owned by the Bar Manager can be obtained via the BarManager.Items property.

See Also