XlFill.NoFill() Method
Returns the XlFill object specifying that a cell has no fill.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.2.Core.dll
NuGet Package: DevExpress.Printing.Core
#Declaration
#Returns
Type | Description |
---|---|
Xl |
An Xl |
#Remarks
Use the NoFill method to remove any fill from a cell background. You can also achieve the same result by setting the XlFill.PatternType property of the XlFill object that defines the cell formatting to XlPatternType.None.
To apply the specified settings to a cell, pass the XlFill object to the IXlCell.ApplyFormatting method as a parameter, or assign it to the IXlCell.Formatting property.
For an example on how to color the cell background, refer to the How to: Change Cell Background Color article.