Table of Contents

Method Reorder

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

Reorder(XlsxConditionalFormat, int)

Gives a rule a priority, as Excel's Move Up and Move Down do: the rules between move one place to make room; priorities stay 1 to the number of rules.

public void Reorder(XlsxConditionalFormat format, int priority)

Parameters

format XlsxConditionalFormat

The rule.

priority int

Its new priority, from 1 (applied first).

Exceptions

ArgumentNullException

format is null.

ArgumentOutOfRangeException

The priority is below 1.

InvalidOperationException

The rule is no longer on the sheet, or the sheet is not a worksheet.