Skip to main content

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

BaseAppearanceCollection Class

Serves as a base for the classes that provide the appearance settings used to paint DevExpress .NET controls.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public class BaseAppearanceCollection :
    IDisposable,
    IAppearanceOwner,
    IXtraSerializable2,
    IEnumerable,
    IAppearanceDefaultFontProvider,
    ISupportAppearanceObjectPropertiesFilter

The following members return BaseAppearanceCollection objects:

#Remarks

The BaseAppearanceCollection class implements the basic functionality for objects that contain the appearance settings used to paint DevExpress .NET controls (XtraGrid, XtraTreeList, XtraVerticalGrid, etc.).

The properties exposed by the BaseAppearanceCollection descendants are of the AppearanceObject type and provide the settings used to paint a particular element in a control (button, header, band, data cell and etc.). These settings can be obtained using the BaseAppearanceCollection.GetAppearance method.

The BaseAppearanceCollection class provides a set of methods (BaseAppearanceCollection.SaveLayoutToRegistry, BaseAppearanceCollection.SaveLayoutToStream and BaseAppearanceCollection.SaveLayoutToXml) that allow the appearance settings to be saved to the system registry, a stream or an XML file. The saved settings can then be restored later using the BaseAppearanceCollection.RestoreLayoutFromRegistry, BaseAppearanceCollection.RestoreLayoutFromStream and BaseAppearanceCollection.RestoreLayoutFromXml methods.

For more information on appearances, see the Appearances document.

See Also