Method Remove
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
Remove(XlsxConditionalFormat)
Removes one rule (and, for a data bar, its settings in the extension).
public bool Remove(XlsxConditionalFormat format)
Parameters
formatXlsxConditionalFormatThe rule, as read from this list.
Returns
- bool
Whether the sheet still had it.
Exceptions
- ArgumentNullException
formatis null.- InvalidOperationException
The sheet is not a worksheet.
Remove(XlsxCellRange)
Removes the rules of a range, as Excel's Clear Rules from Selected Cells: every rule whose cells are all in the range.
public int Remove(XlsxCellRange range)
Parameters
rangeXlsxCellRangeThe range.
Returns
- int
How many rules were removed.
Exceptions
- InvalidOperationException
The sheet is not a worksheet.