Skip to main content
A newer version of this page is available. .
Bar

Bar() Constructor

Initializes a new Bar class instance with default settings.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Bar() constructor.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also