Back to Devexpress

Bar Class

windowsforms-devexpress-dot-xtrabars-6b58a400.md

latest4.6 KB
Original Source

Bar Class

Represents a Windows-like toolbar.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

The following members return Bar objects:

Show 12 links

LibraryRelated API Members
WinForms ControlsBarItemLink.Bar
BarManager.CreateDesignTimeToolbar()
BarManager.MainMenu
BarManager.StatusBar
Bars.Item[Int32]
Bars.Item[String]
CreateToolbarEventArgs.Bar
DashboardDashboardDesignerBarExtensions.GetDashboardBar(BarManager, DashboardBarItemCategory, DashboardToolbar)
DashboardDesignerBarExtensions.GetDashboardBar(BarManager, Type, DashboardToolbar)
.NET Reporting ToolsXRDesignBarManager.FormattingToolbar
XRDesignBarManager.LayoutToolbar
XRDesignBarManager.Toolbar

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

Bar Members

DevExpress.XtraBars Namespace