Back to Devexpress

GradientFill.Stops Property

officefileapi-devexpress-dot-spreadsheet-dot-gradientfill-96a0e10b.md

latest2.3 KB
Original Source

GradientFill.Stops Property

Specifies the color stop points at the gradient line.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
GradientStopCollection Stops { get; }
vb
ReadOnly Property Stops As GradientStopCollection

Property Value

TypeDescription
GradientStopCollection

A GradientStopCollection object that is the collection of color stop points.

|

Remarks

Currently, only two points are supported. One point should be located at the point with coordinate 0 (start), and the other should be located at the point with coordinate 1 (end).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Stops property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-spreadsheetcontrol-api-part-1/VB/SpreadsheetControl_WPF_API/SpreadsheetActions/FormattingActions.vb#L329

vb
' The position of a color stop should be either 0 (start) or 1 (end).
Dim rangeStops1 As GradientStopCollection = rangeGradient1.Stops
rangeStops1.Add(0, Color.BlanchedAlmond)

See Also

GradientFill Interface

GradientFill Members

DevExpress.Spreadsheet Namespace