Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarManager.GetNewBarName() Method

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.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