Bar Class
Represents a Windows-like toolbar.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v18.1.dll
Declaration
public class Bar :
BaseBarComponent,
BarLinksHolder,
IDockableObject,
ISupportWindowActivate,
IAppearanceOwner,
ISupportXtraAnimation,
IXtraObjectWithBounds,
IXtraSerializationIdProvider,
IXtraCollectionDeserializationOptionsProvider,
IXtraSupportDeserializeCollection
Related API Members
The following members accept/return Bar objects:
Remarks
A bar is used to display all BarItemLink descendants.
To control user capabilities and customize the bar’s behavior, use the Bar.OptionsBar object which provides a number of specific options.
For instance, the BarOptions.AllowDelete, BarOptions.AllowRename and BarOptions.DisableClose properties allow you to specify if deleting, renaming or closing the bar is permitted at runtime. The BarOptions.MultiLine property specifies whether bar links can be arranged within multiple rows, etc.
To customize the bar’s appearance, use the Bar.Appearance property. If you need to apply common styles to a number of bars in your application, you can employ the DefaultBarAndDockingController component. See Appearance and Look and Feel to learn more.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Bar class.
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.