Skip to main content
Bar

Bar() Constructor

Initializes a new Bar class instance with default settings.

Namespace: DevExpress.XtraBars

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