Skip to main content
Row

GradientFill.Type Property

Gets or sets the type of the gradient fill.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

GradientFillType Type { get; set; }

Property Value

Type Description
GradientFillType

A GradientFillType enumeration member.

Available values:

Name Description
Linear

Linear gradient. The background fill is a transition through a series of colors specified by color stops placed on a gradient line. The gradient line can be tilted at a specified angle.

Path

Path gradient indicates that the transition boundary of one color to the next is a rectangle, defined by top, bottom, left, and right attributes.

Remarks

The picture below demonstrates the gradient fill of the GradientFillType.Linear type and the GradientFill.Degree property value set to 45.

Gradient_Linear

The picture below demonstrates the gradient fill of the GradientFillType.Path type and the following convergence points:

Gradient_Path

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

See Also