Skip to main content
.NET Framework 4.5.2+

AppearanceAttribute(String, String) Constructor

Creates a new instance of the AppearanceAttribute using the specified parameters.

Namespace: DevExpress.ExpressApp.ConditionalAppearance

Assembly: DevExpress.Persistent.Base.v22.1.dll


public AppearanceAttribute(
    string id,
    string criteria


Name Type Description
id String

A string that is the unique identifier for the appearance rule created using the current attribute instance.

criteria String

A string that is the criterion for activation of the rule created using the current attribute instance.


This constructor sets the following attribute properties:

The remaining properties can be specified using the constructor’s named parameters.

To learn how to define a rule using the Appearance attribute, refer to the Declare Conditional Appearance Rules in Code topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppearanceAttribute(String, String) constructor.


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.

See Also