Back to Devexpress

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

officefileapi-devexpress-dot-spreadsheet-dot-drawings-dot-shapeoutlinefill-dot-setgradientfill-x28-shapegradienttype-ilist-gradientstopinfo-x29.md

latest2.6 KB
Original Source

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

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

Namespace : DevExpress.Spreadsheet.Drawings

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

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

Parameters

NameTypeDescription
gradientTypeShapeGradientType

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

ShapeOutlineFill Interface

ShapeOutlineFill Members

DevExpress.Spreadsheet.Drawings Namespace