Skip to main content

BarManager.GetNewBarName() Method

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v23.1.dll

NuGet Package: DevExpress.Win.Navigation


public string GetNewBarName()


Type Description

A string specifying the name for a new bar.


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