Link Search Menu Expand Document

CellFillPatternBackColor Property

Gets or sets the background color for a fill pattern.

Namespace:Bytescout.Spreadsheet
Assembly: Bytescout.Spreadsheet (in Bytescout.Spreadsheet.dll) Version: 4.7.0.2045-master
Syntax
public Color FillPatternBackColor { get; set; }

Property Value

Type: Color
The background color for a fill pattern.

Implements

IExtFormatFillPatternBackColor
Remarks
XLS format stores document colors in a palette of fixed size. If you use some custom colors you should store them in the palette. It's allowed to modify any palette color. XLSX format is free of this defect.
Examples
// Register custom color in the palette to make it correctly saved in XLS document. Color color = ColorTranslator.FromHtml("#D99795"); document.Workbook.Colors[0] = color; cell.FillPatternForeColor = color;
See Also

Reference