Method UngroupRows
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
UngroupRows(int, int)
Ungroups rows, as Excel's Data > Ungroup does: each grouped row goes one outline level up.
public void UngroupRows(int first, int last)
Parameters
Remarks
Rows a collapsed group hid stay hidden, as Excel leaves them (measured); show them with SetRowHidden(int, bool).
Exceptions
- ArgumentOutOfRangeException
The rows are outside the worksheet grid, or
lastis beforefirst.- InvalidOperationException
The sheet is not a worksheet, or none of the rows is grouped, which Excel refuses.
- InvalidDocumentException
The sheet's part is malformed.