Skip to main content
A newer version of this page is available. .

AppearanceObject.GradientMode Property

Gets or sets the background gradient’s direction.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v19.2.dll

Declaration

[XtraSerializableProperty]
[DXCategory("Appearance")]
public virtual LinearGradientMode GradientMode { get; set; }

Property Value

Type Default Description
LinearGradientMode **Horizontal**

A LinearGradientMode enumeration value specifying the gradient’s direction.

Remarks

If both the AppearanceObject.BackColor and AppearanceObject.BackColor2 properties are set, elements draw their background with a linear gradient brush whose direction is specified by the GradientMode property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GradientMode property.

Note

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