Back to Devexpress

BarCollection.GetBarByCaption(String) Method

wpf-devexpress-dot-xpf-dot-bars-dot-barcollection-dot-getbarbycaption-x28-system-dot-string-x29.md

latest1.4 KB
Original Source

BarCollection.GetBarByCaption(String) Method

Returns a bar that has the specified caption.

Namespace : DevExpress.Xpf.Bars

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public Bar GetBarByCaption(
    string barCaption
)
vb
Public Function GetBarByCaption(
    barCaption As String
) As Bar

Parameters

NameTypeDescription
barCaptionString

A string value that represents the caption of the bar to be returned. This value matches the Bar.Caption property’s value.

|

Returns

TypeDescription
Bar

A Bar object that represents a bar with the specified caption.

|

See Also

Caption

BarCollection Class

BarCollection Members

DevExpress.Xpf.Bars Namespace