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