Class ExcelGradientFill
The background fill of a cell
Inherited Members
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Syntax
public class ExcelGradientFill : StyleBase
Properties
Bottom
The bottom position of the inner rectangle (color 1) in percentage format (from the top to the bottom). Spans from 0 to 1
Declaration
public double Bottom { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Color1
Gradient Color 1
Declaration
public ExcelColor Color1 { get; }
Property Value
| Type | Description |
|---|---|
| ExcelColor |
Color2
Gradient Color 2
Declaration
public ExcelColor Color2 { get; }
Property Value
| Type | Description |
|---|---|
| ExcelColor |
Degree
Angle of the linear gradient
Declaration
public double Degree { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Left
The left position of the inner rectangle (color 1) in percentage format (from the left to the right). Spans from 0 to 1
Declaration
public double Left { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Right
The right position of the inner rectangle (color 1) in percentage format (from the left to the right). Spans from 0 to 1
Declaration
public double Right { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Top
The top position of the inner rectangle (color 1) in percentage format (from the top to the bottom). Spans from 0 to 1
Declaration
public double Top { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Type
Linear or Path gradient
Declaration
public ExcelFillGradientType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ExcelFillGradientType |