Back to Devexpress

BaseAppearanceCollection.GetAppearance(String) Method

windowsforms-devexpress-dot-utils-dot-baseappearancecollection-dot-getappearance-x28-system-dot-string-x29.md

latest2.5 KB
Original Source

BaseAppearanceCollection.GetAppearance(String) Method

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

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public virtual AppearanceObject GetAppearance(
    string name
)
vb
Public Overridable Function GetAppearance(
    name As String
) As AppearanceObject

Parameters

NameTypeDescription
nameString

A String value specifying the name of the required appearance object.

|

Returns

TypeDescription
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

BaseAppearanceCollection Class

BaseAppearanceCollection Members

DevExpress.Utils Namespace