Back to Devexpress

Bar() Constructor

windowsforms-devexpress-dot-xtrabars-dot-bar-dot-ctor-b5407dfd.md

latest1.9 KB
Original Source

Bar() Constructor

Initializes a new Bar class instance with default settings.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public Bar()
vb
Public Sub New

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

Manager

Visible

AddItem(BarItem)

AddItems(BarItem[])

Bar Class

Bar Members

DevExpress.XtraBars Namespace