Show / Hide Table of Contents

Class ExcelGradientFill

The background fill of a cell

Inheritance
Object
StyleBase
ExcelGradientFill
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
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
In this article
Back to top Generated by DocFX