Skip to main content

AppearanceObject.GradientMode Property

Gets or sets the background gradient’s direction.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v23.2.dll

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

Declaration

[Browsable(false)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public virtual LinearGradientMode GradientMode { get; set; }

Property Value

Type Description
LinearGradientMode

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 snippet (auto-collected from DevExpress Examples) contains a reference 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