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.GetAppearance(String) Method

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

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.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