Class ExcelFill
- Namespace
- OfficeOpenXml.Style
- Assembly
- EPPlus.dll
The background fill of a cell
public class ExcelFill : StyleBase
- Inheritance
-
ExcelFill
- Inherited Members
Properties
BackgroundColor
The background color
public ExcelColor BackgroundColor { get; }
Property Value
Gradient
Access to properties for gradient fill.
public ExcelGradientFill Gradient { get; }
Property Value
PatternColor
The color of the pattern
public ExcelColor PatternColor { get; }
Property Value
PatternType
The pattern for solid fills.
public ExcelFillStyle PatternType { get; set; }
Property Value
Methods
SetBackground(eThemeSchemeColor, ExcelFillStyle)
Set the background to a specific color and fillstyle
public void SetBackground(eThemeSchemeColor color, ExcelFillStyle fillStyle = ExcelFillStyle.Solid)
Parameters
color
eThemeSchemeColorThe theme color
fillStyle
ExcelFillStyleThe fillstyle. Default Solid
SetBackground(ExcelIndexedColor, ExcelFillStyle)
Set the background to a specific color and fillstyle
public void SetBackground(ExcelIndexedColor color, ExcelFillStyle fillStyle = ExcelFillStyle.Solid)
Parameters
color
ExcelIndexedColorThe indexed color
fillStyle
ExcelFillStyleThe fillstyle. Default Solid
SetBackground(Color, ExcelFillStyle)
Set the background to a specific color and fillstyle
public void SetBackground(Color color, ExcelFillStyle fillStyle = ExcelFillStyle.Solid)
Parameters
color
Colorthe color
fillStyle
ExcelFillStyleThe fillstyle. Default Solid