Back to Devexpress

Fill.Gradient Property

officefileapi-devexpress-dot-spreadsheet-dot-fill-775aaeec.md

latest4.1 KB
Original Source

Fill.Gradient Property

Provides access to an object containing gradient characteristics.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
GradientFill Gradient { get; }
vb
ReadOnly Property Gradient As GradientFill

Property Value

TypeDescription
GradientFill

A GradientFill object that contains all gradient characteristics.

|

Remarks

The Gradient property affects the appearance of the cell background if the Fill.FillType is set to the Fill.Gradient value.

For examples on how to specify the format for an individual cell and cell range, or modify a style, refer to the How to: Format a Cell or Range of Cells or How to: Create or Modify a Style document.

To access the Fill object, use the Formatting.Fill property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Gradient 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#L322

vb
worksheet.Range("C3:F8").Fill.FillType = FillType.Gradient
Dim rangeGradient1 As GradientFill = worksheet.Range("C3:F8").Fill.Gradient
rangeGradient1.Type = GradientFillType.Linear

See Also

Fill Interface

Fill Members

DevExpress.Spreadsheet Namespace