Back to Devexpress

BarItems.Item[String] Property

windowsforms-devexpress-dot-xtrabars-dot-baritems-dot-item-x28-system-dot-string-x29.md

latest1.8 KB
Original Source

BarItems.Item[String] Property

Gets an individual bar items by its name.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public BarItem this[string name] { get; }
vb
Public ReadOnly Property Item(name As String) As BarItem

Parameters

NameTypeDescription
nameString

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

TypeDescription
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

Items

BarItems Class

BarItems Members

DevExpress.XtraBars Namespace