Bar

BarManagerAppearances.Bar Property

Contains default style settings to paint bars.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[Browsable(false)]
public AppearanceObject Bar { get; }
<Browsable(False)>
Public ReadOnly Property Bar As AppearanceObject

Property Value

Type Description
AppearanceObject

An AppearanceObject object providing style settings to paint bars.

Remarks

You can use the Bar property to specify default style settings for all bars. Each bar also provides the Bar.Appearance property, that allows you to override the default settings for this bar. XtraBars employs special flags to indicate whether particular styles should be used. Flags are automatically set when assigning values to corresponding style properties. Flags can be cleared via the AppearanceObject.Options property.

For main menus and status bars, you can use the BarManagerAppearances.MainMenu and BarManagerAppearances.StatusBar properties to customize their default styles. If these properties are not used (corresponding flags are cleared), the bars will be painted using the styles provided by the Bar object.

The following table summarizes which appearance options provided by the Bar object are in effect in various painting schemes:

Appearance Option Office 2000 Office 2003 Windows XP Skinning Painting Scheme
BackColor + + + -
BackColor2 and GradientMode + + - -
Image + - + -
Font and ForeColor + + + +

The BorderColor property is ignored in all painting schemes.

See Appearance and Look and Feel to learn more.

See Also