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
formatXlsxConditionalFormatThe rule.
priorityintIts new priority, from 1 (applied first).
Exceptions
- ArgumentNullException
formatis null.- ArgumentOutOfRangeException
The priority is below 1.
- InvalidOperationException
The rule is no longer on the sheet, or the sheet is not a worksheet.