Skip to main content
Bar

BarItems.Item[String] Property

Gets an individual bar items by its name.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

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