BaseAppearanceCollection.GetAppearance(String) Method
Gets an appearance object contained within the collection by its name.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
name | String | A String value specifying the name of the required appearance object. |
Returns
Type | Description |
---|---|
AppearanceObject | The AppearanceObject object within the collection which has the specified name. |
Remarks
BaseAppearanceCollection descendants (GridViewAppearances class, for instance) represent the appearance settings used to paint the visual elements of DevExpress .NET controls such as the XtraGrid, XtraTreeList, etc. The properties of such objects are of the AppearanceObject type and provide the settings used to paint a particular element in a control (button, header, band, data cell, etc).
The GetAppearance method gets the appearance object which has the same name as that specified by the name parameter. If there isn’t any object with the specified name, this method creates and returns a new instance of the AppearanceObject class with default settings.