Table of Contents

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

format XlsxConditionalFormat

The rule, as read from this list.

Returns

bool

Whether the sheet still had it.

Exceptions

ArgumentNullException

format is 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

range XlsxCellRange

The range.

Returns

int

How many rules were removed.

Exceptions

InvalidOperationException

The sheet is not a worksheet.