Abstract base class for the fill of a cell.
Constructors
Section titled "Constructors"CellFill
new CellFill(): CellFill Returns CellFill
Properties
Section titled "Properties"$t: Type Accessors
Section titled "Accessors"noColor
Section titled "noColor"Methods
Section titled "Methods"createLinearGradientFill
Section titled "createLinearGradientFill"Creates a linear gradient that can be applied to a cell's fill.
createLinearGradientFill(angle: number, stops: CellFillGradientStop[]): CellFillLinearGradient Parameters
- angle:
numberThe angle, in degrees, of the direction of the linear gradient, going clockwise from the left-to-right direction.
- stops:
CellFillGradientStop[]Two or more gradient stops which describe the color transitions and their positions within the gradient.
Returns CellFillLinearGradient
createPatternFill
Section titled "createPatternFill"Creates a solid color or pattern fill that can be applied to a cell.
createPatternFill(backgroundColorInfo: WorkbookColorInfo, patternColorInfo: WorkbookColorInfo, patternStyle: FillPatternStyle): CellFillPattern Parameters
- backgroundColorInfo:
WorkbookColorInfoA [[WorkbookColorInfo]] which describes the background color of the cell, which will only be seen if the 'patternStyle' is not None.
- patternColorInfo:
WorkbookColorInfoA [[WorkbookColorInfo]] which describes the pattern color of the cell, which will only be seen if the 'patternStyle' is not None or Solid.
- patternStyle:
FillPatternStyleThe fill pattern for the cell.
Returns CellFillPattern
createRectangularGradientFill
Section titled "createRectangularGradientFill"Creates a rectangular gradient that can be applied to a cell's fill.
createRectangularGradientFill(colorInfo1: WorkbookColorInfo, colorInfo2: WorkbookColorInfo): CellFillRectangularGradient Parameters
- colorInfo1:
WorkbookColorInfoA [[WorkbookColorInfo]] which describes the color at the inner rectangle (cell center) of the gradient.
- colorInfo2:
WorkbookColorInfoA [[WorkbookColorInfo]] which describes the color at the outer rectangle (cell edges) of the gradient.
Returns CellFillRectangularGradient
createSolidFill
Section titled "createSolidFill"Creates a solid color fill that can be applied to a cell.
createSolidFill(solidColorInfo: WorkbookColorInfo): CellFillPattern Parameters
- solidColorInfo:
WorkbookColorInfoA [[WorkbookColorInfo]] which describes the solid color of the fill.