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.v18.1.dll
Declaration
[TypeConverter(typeof(ExpandableObjectConverter))]
public class BaseAppearanceCollection :
IDisposable,
IAppearanceOwner,
IXtraSerializable2,
IEnumerable,
IAppearanceDefaultFontProvider
Related API Members
The following members accept/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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BaseAppearanceCollection class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.