Table of Contents

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

ExcelColor

Gradient

Access to properties for gradient fill.

public ExcelGradientFill Gradient { get; }

Property Value

ExcelGradientFill

PatternColor

The color of the pattern

public ExcelColor PatternColor { get; }

Property Value

ExcelColor

PatternType

The pattern for solid fills.

public ExcelFillStyle PatternType { get; set; }

Property Value

ExcelFillStyle

Methods

SetBackground(eThemeSchemeColor, ExcelFillStyle)

Set the background to a specific color and fillstyle

public void SetBackground(eThemeSchemeColor color, ExcelFillStyle fillStyle = ExcelFillStyle.Solid)

Parameters

color eThemeSchemeColor

The theme color

fillStyle ExcelFillStyle

The 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 ExcelIndexedColor

The indexed color

fillStyle ExcelFillStyle

The 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 Color

the color

fillStyle ExcelFillStyle

The fillstyle. Default Solid