Skip to content

Class ExcelGradientFill

Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll

The background fill of a cell

public class ExcelGradientFill : StyleBase

Inheritance

object ← StyleBase ← ExcelGradientFill

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

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

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