Class ExcelGradientFill
The background fill of a cell
Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.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 | 
|---|---|
| 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
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 | 
|---|---|
| System.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 | 
|---|---|
| System.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 | 
|---|---|
| System.Double | 
Type
Linear or Path gradient
Declaration
public ExcelFillGradientType Type { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ExcelFillGradientType |