Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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 Class

Represents a Windows-like toolbar.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public class Bar :
    BaseBarComponent,
    BarLinksHolder,
    IDockableObject,
    ISupportWindowActivate,
    IAppearanceOwner,
    ISupportXtraAnimation,
    IXtraObjectWithBounds,
    IXtraSerializationIdProvider,
    IXtraCollectionDeserializationOptionsProvider,
    IXtraSupportDeserializeCollection,
    IAutoOpenMenuBar,
    IAccessiblePropertiesProvider

#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.

#Inheritance

Object
MarshalByRefObject
Component
DevExpress.XtraBars.BaseBarComponent
Bar
See Also