Bar Class

Represents a Windows-like toolbar.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public class Bar :
    BaseBarComponent,
    BarLinksHolder,
    IDockableObject,
    ISupportWindowActivate,
    IAppearanceOwner,
    ISupportXtraAnimation,
    IXtraObjectWithBounds,
    IXtraSerializationIdProvider,
    IXtraCollectionDeserializationOptionsProvider,
    IXtraSupportDeserializeCollection,
    IAutoOpenMenuBar
Public Class Bar
    Inherits BaseBarComponent
    Implements BarLinksHolder,
               IDockableObject,
               ISupportWindowActivate,
               IAppearanceOwner,
               ISupportXtraAnimation,
               IXtraObjectWithBounds,
               IXtraSerializationIdProvider,
               IXtraCollectionDeserializationOptionsProvider,
               IXtraSupportDeserializeCollection,
               IAutoOpenMenuBar

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