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

Bar() Constructor

In This Article

Initializes a new Bar class instance with default settings.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public Bar()

#Remarks

Use the constructor to create a new bar at runtime. The generated bar is initialized with default property values. Note that you must initialize the Bar.Manager property manually in order to assign the owning Bar Manager to the created bar. The Bar.Visible property should be set to true to display the bar (this property value is false by default).

Use the Bar.AddItem and Bar.AddItems methods to create links for the bar. These methods require items to be specified. Items onto which to add links can be obtained via the BarManager.Items property of the BarManager.

See Also