Show / Hide Table of Contents

Class ExcelGradientFill

The background fill of a cell

Inheritance
System.Object
StyleBase
ExcelGradientFill
Inherited Members
StyleBase._address
StyleBase._positionID
StyleBase._styles
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Experior.Core.Data.OfficeOpenXml.Style
Assembly: Experior.Core.dll
Syntax
public class ExcelGradientFill : StyleBase

Properties

Bottom

Specifies in percentage format (from the top to the bottom) the position of the bottom edge of the inner rectangle (color 1). For bottom, 0 means the bottom edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.

Declaration
public double Bottom { get; set; }
Property Value
Type Description
System.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
System.Double

Left

Specifies in percentage format (from the left to the right) the position of the left edge of the inner rectangle (color 1). For left, 0 means the left edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell. (applies to From Corner and From Center gradients).

Declaration
public double Left { get; set; }
Property Value
Type Description
System.Double

Right

Specifies in percentage format (from the left to the right) the position of the right edge of the inner rectangle (color 1). For right, 0 means the right edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell. (applies to From Corner and From Center gradients).

Declaration
public double Right { get; set; }
Property Value
Type Description
System.Double

Top

Specifies in percentage format(from the top to the bottom) the position of the top edge of the inner rectangle (color 1). For top, 0 means the top edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell. (applies to From Corner and From Center gradients).

Declaration
public double Top { get; set; }
Property Value
Type Description
System.Double

Type

Linear or Path gradient

Declaration
public ExcelFillGradientType Type { get; set; }
Property Value
Type Description
ExcelFillGradientType
Back to top Generated by DocFX