The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

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

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

Namespace: DevExpress.Spreadsheet.Drawings

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

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

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.

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.

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