CellFillPatternForeColor Property
Gets or sets the foreground color for a fill pattern.
Namespace:Bytescout.SpreadsheetAssembly: Bytescout.Spreadsheet (in Bytescout.Spreadsheet.dll) Version: 4.7.0.2045-master
public Color FillPatternForeColor { get; set; }
Public Property FillPatternForeColor As Color
Get
Set
public:
virtual property Color FillPatternForeColor {
Color get () sealed;
void set (Color value) sealed;
}
abstract FillPatternForeColor : Color with get, set
override FillPatternForeColor : Color with get, set
Property Value
Type:
ColorThe foreground color for a fill pattern.
Implements
IExtFormatFillPatternForeColorXLS 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.
// 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;
Reference