Skip to main content
Bar

BarManager.GetNewBarName() Method

Returns a unique name for a bar which is about to be created.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public string GetNewBarName()

Returns

Type Description
String

A string specifying the name for a new bar.

Remarks

When a new bar is created, you can specify its name via a constructor parameter. If you omit the name or set the BarName parameter to null or an empty string, the bar will be given the default name returned by the GetNewBarName property.

Default names are constructed in the following form: “Custom NN”, where NN is an ordinal number.

See Also