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

RectangleGradientFillOptions.GradientMode Property

Gets or sets the background gradient’s direction.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

[XtraSerializableProperty]
public RectangleGradientMode GradientMode { get; set; }

Property Value

Type Description
RectangleGradientMode

A RectangleGradientMode enumeration value which specifies the linear gradient’s direction.

Available values:

Show 12 items
Name Description
TopToBottom

fsTopToBottom Specifies a gradient from top to bottom.

BottomToTop

fsBottomToTop Specifies a gradient from bottom to top.

LeftToRight

fsLeftToRight Specifies a gradient from left to right.

RightToLeft

fsRightToLeft Specifies a gradient from right to left.

TopLeftToBottomRight

fsTopLeftToBottomRight Specifies a gradient from upper left to lower right.

BottomRightToTopLeft

fsBottomRightToTopLeft Specifies a gradient from lower right to upper left.

TopRightToBottomLeft

fsTopRightToBottomLeft Specifies a gradient from upper right to lower left.

BottomLeftToTopRight

fsBottomLeftToTopRight Specifies a gradient from lower left to upper right.

FromCenterHorizontal

fsFromCenterHorz Specifies a horizontal gradient that starts from the center.

ToCenterHorizontal

fsToCenterHorz Specifies a horizontal gradient that ends at the center.

FromCenterVertical

fsFromCenterVert Specifies a vertical gradient that starts from the center.

ToCenterVertical

fsToCenterVert Specifies a vertical gradient that ends at the center.

Remarks

Use the GradientMode property to specify the linear gradient’s direction.

See Also