Skip to main content

BaseAppearanceCollection.GetAppearance(String) Method

Gets an appearance object contained within the collection by its name.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.1.dll

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

Declaration

public virtual AppearanceObject GetAppearance(
    string name
)

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.

See Also