Table of Contents

Class ExcelGradientFill

Namespace
OfficeOpenXml.Style
Assembly
EPPlus.dll

The background fill of a cell

public class ExcelGradientFill : StyleBase
Inheritance
ExcelGradientFill
Inherited Members

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

public double Bottom { get; set; }

Property Value

double

Color1

Gradient Color 1

public ExcelColor Color1 { get; }

Property Value

ExcelColor

Color2

Gradient Color 2

public ExcelColor Color2 { get; }

Property Value

ExcelColor

Degree

Angle of the linear gradient

public double Degree { get; set; }

Property Value

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

public double Left { get; set; }

Property Value

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

public double Right { get; set; }

Property Value

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

public double Top { get; set; }

Property Value

double

Type

Linear or Path gradient

public ExcelFillGradientType Type { get; set; }

Property Value

ExcelFillGradientType