Link Search Menu Expand Document

CellFillPatternForeColor Property

Gets or sets the foreground color for a fill pattern.

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

Property Value

Type: Color
The foreground color for a fill pattern.

Implements

IExtFormatFillPatternForeColor
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