Skip to main content

ShapeOutlineFill.SetGradientFill(ShapeGradientType, IList<GradientStopInfo>) Method

Sets the gradient fill for a drawing object’s element.

Namespace: DevExpress.Spreadsheet.Drawings

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

void SetGradientFill(
    ShapeGradientType gradientType,
    IList<GradientStopInfo> gradientStops
)

Parameters

Name Type Description
gradientType ShapeGradientType

A ShapeGradientType enumeration value specifying the type of the gradient to be applied to a chart element.

gradientStops IList<GradientStopInfo>

A list of the GradientStopInfo objects containing information about the gradient stop position and color.

Remarks

Note

Currently, the SpreadsheetControl supports only a linear gradient with two color stops at the beginning and at the end of a gradient line. Therefore, other gradient types (like radial, rectangular or path) will be displayed as a linear gradient between the starting and ending colors when you load the document in the SpreadsheetControl. However, the gradient fill settings can be accessed in code, exported in supported formats and visualized in Microsoft Excel.

See Also