Table of Contents

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

first int

The first one-based row.

last int

The last one-based row.

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 last is before first.

InvalidOperationException

The sheet is not a worksheet, or none of the rows is grouped, which Excel refuses.

InvalidDocumentException

The sheet's part is malformed.