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
rangeXlsxCellRangeThe cells.
blanksboolWhether blank cells are formatted (cells that are not, otherwise).
formatXlsxDifferentialStyleWhat the rule changes.
Returns
- XlsxConditionalFormat
The rule.
Exceptions
- ArgumentException
The format sets nothing.
- InvalidOperationException
The sheet is not a worksheet.