XlFill.BackColor Property
Gets or sets the background color of the cell pattern fill.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.1.Core.dll
NuGet Package: DevExpress.Printing.Core
Declaration
Property Value
Type | Description |
---|---|
XlColor | An XlColor value that specifies the background color. |
Remarks
Use the XlFill.PatternFill method to specify the pattern fill for a cell. The BackColor property allows you to control the background color of a cell to which the pattern style is applied. You can also use the XlFill.PatternType and XlFill.ForeColor properties to change the style and foreground color of the cell fill pattern.
Note that when a solid fill is applied to a cell background (the XlFill.PatternType property is set to XlPatternType.Solid), the XlFill.ForeColor is the only color rendered, even when the BackColor is also specified.
For more information on how to set the background characteristics of a cell, refer to the How to: Change Cell Background Color example.