Abstract base class for the fill of a cell.

Inheritance

object

Classes that extend this class.

Derived Classes

constructor

protected CellFill()

Returns CellFill

Gets the default cell fill, which is no background color.

public static CellFill NoColor { get; }

CreateLinearGradientFill(double, Color, Color)

Section titled "CreateLinearGradientFill(double, Color, Color)"

Creates a linear gradient that can be applied to a cell's fill.

public static CellFillLinearGradient CreateLinearGradientFill(double angle, Color color1, Color color2)

Parameters

  • angle: double
  • color1: Color
  • color2: Color

Returns any

CreateLinearGradientFill(double, params CellFillGradientStop[])

Section titled "CreateLinearGradientFill(double, params CellFillGradientStop[])"

Creates a linear gradient that can be applied to a cell's fill.

public static CellFillLinearGradient CreateLinearGradientFill(double angle, params CellFillGradientStop[] stops)

Parameters

  • angle: double
  • stops: CellFillGradientStop[]

Returns any

CreateLinearGradientFill(double, WorkbookColorInfo, WorkbookColorInfo)

Section titled "CreateLinearGradientFill(double, WorkbookColorInfo, WorkbookColorInfo)"

Creates a linear gradient that can be applied to a cell's fill.

public static CellFillLinearGradient CreateLinearGradientFill(double angle, WorkbookColorInfo colorInfo1, WorkbookColorInfo colorInfo2)

Parameters

  • angle: double
  • colorInfo1: WorkbookColorInfo
  • colorInfo2: WorkbookColorInfo

Returns any

CreatePatternFill(Color, Color, FillPatternStyle)

Section titled "CreatePatternFill(Color, Color, FillPatternStyle)"

Creates a solid color or pattern fill that can be applied to a cell.

public static CellFillPattern CreatePatternFill(Color backgroundColor, Color patternColor, FillPatternStyle patternStyle)

Parameters

  • backgroundColor: Color
  • patternColor: Color
  • patternStyle: FillPatternStyle

Returns any

CreatePatternFill(WorkbookColorInfo, WorkbookColorInfo, FillPatternStyle)

Section titled "CreatePatternFill(WorkbookColorInfo, WorkbookColorInfo, FillPatternStyle)"

Creates a solid color or pattern fill that can be applied to a cell.

public static CellFillPattern CreatePatternFill(WorkbookColorInfo backgroundColorInfo, WorkbookColorInfo patternColorInfo, FillPatternStyle patternStyle)

Parameters

  • backgroundColorInfo: WorkbookColorInfo
  • patternColorInfo: WorkbookColorInfo
  • patternStyle: FillPatternStyle

Returns any

CreateRectangularGradientFill(Color, Color)

Section titled "CreateRectangularGradientFill(Color, Color)"

Creates a rectangular gradient that can be applied to a cell's fill.

public static CellFillRectangularGradient CreateRectangularGradientFill(Color color1, Color color2)

Parameters

  • color1: Color
  • color2: Color

Returns any

CreateRectangularGradientFill(WorkbookColorInfo, WorkbookColorInfo)

Section titled "CreateRectangularGradientFill(WorkbookColorInfo, WorkbookColorInfo)"

Creates a rectangular gradient that can be applied to a cell's fill.

public static CellFillRectangularGradient CreateRectangularGradientFill(WorkbookColorInfo colorInfo1, WorkbookColorInfo colorInfo2)

Parameters

  • colorInfo1: WorkbookColorInfo
  • colorInfo2: WorkbookColorInfo

Returns any

CreateRectangularGradientFill(double, double, double, double, Color, Color)

Section titled "CreateRectangularGradientFill(double, double, double, double, Color, Color)"

Creates a rectangular gradient that can be applied to a cell's fill.

public static CellFillRectangularGradient CreateRectangularGradientFill(double left, double top, double right, double bottom, Color color1, Color color2)

Parameters

  • left: double
  • top: double
  • right: double
  • bottom: double
  • color1: Color
  • color2: Color

Returns any

CreateRectangularGradientFill(double, double, double, double, params CellFillGradientStop[])

Section titled "CreateRectangularGradientFill(double, double, double, double, params CellFillGradientStop[])"

Creates a rectangular gradient that can be applied to a cell's fill.

public static CellFillRectangularGradient CreateRectangularGradientFill(double left, double top, double right, double bottom, params CellFillGradientStop[] stops)

Parameters

  • left: double
  • top: double
  • right: double
  • bottom: double
  • stops: CellFillGradientStop[]

Returns any

CreateRectangularGradientFill(double, double, double, double, WorkbookColorInfo, WorkbookColorInfo)

Section titled "CreateRectangularGradientFill(double, double, double, double, WorkbookColorInfo, WorkbookColorInfo)"

Creates a rectangular gradient that can be applied to a cell's fill.

public static CellFillRectangularGradient CreateRectangularGradientFill(double left, double top, double right, double bottom, WorkbookColorInfo colorInfo1, WorkbookColorInfo colorInfo2)

Parameters

  • left: double
  • top: double
  • right: double
  • bottom: double
  • colorInfo1: WorkbookColorInfo
  • colorInfo2: WorkbookColorInfo

Returns any

Creates a solid color fill that can be applied to a cell.

public static CellFillPattern CreateSolidFill(Color solidColor)

Parameters

  • solidColor: Color

Returns any

Creates a solid color fill that can be applied to a cell.

public static CellFillPattern CreateSolidFill(WorkbookColorInfo solidColorInfo)

Parameters

  • solidColorInfo: WorkbookColorInfo

Returns any