Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarManagerAppearances.Reset() Method

In This Article

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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 Look and Feel 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