Skip to main content
Bar

BarItem Class

Provides the functionality of bar elements.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public class BarItem :
    Component,
    IXtraSerializable,
    ICustomTypeDescriptor,
    IAppearanceOwner,
    IBindableComponent,
    IComponent,
    IDisposable,
    IDXImageUriClient,
    ISupportAdornerElementBarItem,
    IUpdateAdornerUI,
    IDXMenuItemOwner,
    IImageDropInfo,
    ISupportDXSkinColorsEx,
    ISupportDXSkinColors,
    IAccessiblePropertiesProvider

Remarks

BarItem describes the functionality for any object located within a bar. Items are non-visual elements that contain methods and properties of the object within a bar and process specific object events. Item defines an object’s response to mouse clicks or key press events. Properties displayed within the Properties section of the Customization window are item properties.

Items in Customization

A BarItem can be placed onto any existing bar or menu and based upon the item’s location, its behavior changes: in a bar, the item is a regular bar button, which can be clicked by a mouse or activated by a shortcut key combination. In a menu, the bar item is a specific menu command.

Important

If you create a bar item in code, associate the bar item with the BarManager or RibbonControl. Use the constructor with the BarManager parameter. To display the bar item within the Ribbon Control, pass the RibbonControl.Manager object as the BarManager parameter.

See Also