Table of Contents

Method SetRowHidden

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

SetRowHidden(int, bool)

Hides or shows a row, as Excel's Hide and Unhide do. Its height is kept.

public void SetRowHidden(int row, bool hidden)

Parameters

row int

The one-based row. It need not hold any cells.

hidden bool

Whether the row is hidden.

Exceptions

ArgumentOutOfRangeException

The row is outside the worksheet grid.

InvalidOperationException

The sheet is not a worksheet.

InvalidDocumentException

The sheet's part is malformed.