Skip to main content

XlFill.NoFill() Method

Returns the XlFill object specifying that a cell has no fill.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v23.2.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public static XlFill NoFill()

Returns

Type Description
XlFill

An XlFill class instance.

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.

See Also