Table of Contents

Method AddBlanks

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

AddBlanks(XlsxCellRange, bool, XlsxDifferentialStyle)

Adds a rule that formats blank cells (and text of nothing but spaces), or those that are not.

public XlsxConditionalFormat AddBlanks(XlsxCellRange range, bool blanks, XlsxDifferentialStyle format)

Parameters

range XlsxCellRange

The cells.

blanks bool

Whether blank cells are formatted (cells that are not, otherwise).

format XlsxDifferentialStyle

What the rule changes.

Returns

XlsxConditionalFormat

The rule.

Exceptions

ArgumentException

The format sets nothing.

InvalidOperationException

The sheet is not a worksheet.