Skip to main content
A newer version of this page is available. .
Bar

BarManagerAppearances.Reset() Method

Restores all the style settings and usage options to default values and thus stops elements from using these appearance settings.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

public virtual void Reset()

Remarks

The Reset method allows you to revert to default style settings for all the style properties (BarManagerAppearances.Bar, BarManagerAppearances.Dock, BarManagerAppearances.ItemsFont, BarManagerAppearances.MainMenu, BarManagerAppearances.StatusBar and BarManagerAppearances.SubMenu) at once. If you need to restore default style settings for a particular style property, you can call the Reset method provided by a corresponding object.

Each style property representing an AppearanceObject object provides style attributes (background and foreground colors, gradient mode, etc). The AppearanceObject.Options property specifies a set of Boolean flags that indicate whether any of these attributes were initialized and must be used for painting by elements. If a specific flag is cleared, the element will be painted using a default setting. See the Appearance Inheritance Options document for more information.

The Reset method reverts the style attributes to default values and clears all the flags. Henceforth, elements will use default style settings for painting.

See Also