AppearanceObject.GradientMode Property

Gets or sets the background gradient's direction.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v20.1.dll

Declaration

[XtraSerializableProperty]
[DXCategory("Appearance")]
public virtual LinearGradientMode GradientMode { get; set; }
<XtraSerializableProperty>
<DXCategory("Appearance")>
Public Overridable Property GradientMode As LinearGradientMode

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.

See Also