A newer version of this page is available. Switch to the current version.

AppearanceOptions Class

Provides appearance options.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v19.1.dll

Declaration

public class AppearanceOptions :
    BaseOptions
Public Class AppearanceOptions
    Inherits BaseOptions

Related API Members

The following members accept/return AppearanceOptions objects:

Remarks

The AppearanceOptions class provides the Boolean options that determine which appearance settings should be used to paint an element. If an option is disabled, its corresponding property is not used. For example, if the AppearanceOptions.UseBackColor option is set to false, the AppearanceObject.BackColor property is not used. In this case, the element's background color is specified by the control's look and feel settings.

When an AppearanceObject's style setting (for example, BackColor, ForeColor, Font and TextOptions.HAlignment) is set to a non-default value, the corresponding Options.Use... option (for instance, Options.UseBackColor, Options.UseForeColor, Options.UseFont and Options.UseTextOptions) is automatically set to true in the following cases:

  • The AppearanceObject belongs to a control/component (or its element), and this control/component has been completely loaded (see the control's IsLoading property to check the load status);
  • The AppearanceObject belongs to a grid column/band or tree list column/band, and the column/band belongs to a grid/tree list control;
  • The AppearanceObject is standalone, that is, it does not belong to any control or component.

In other cases, the Options.Use... options are not automatically enabled. You may need to enable these options manually for the style settings to be in effect.

For more information on appearances, see the Appearances document.

See Also