NativeExcel2 for .Net Developer's Reference

IRangeRow.Hidden Property

Gets or sets a value that indicates whether the row is hidden.

[Visual Basic]
PropertyHiddenAsBoolean
[C#]
boolHidden{get;set;}
[C++]
__propertyboolget_Hidden();
__propertyvoidset_Hidden(bool);
[JScript]
functiongetHidden():bool
functionsetHidden(bool);

Property Value

true if the row is hidden; otherwise, false.

Example

This example hides the second row on sheet one.

[C#]
book.Worksheets[1].Cells.Rows[2].Hidden = true;
[VisualBasic]
book.Worksheets(1).Cells.Rows(2).Hidden = True
[C++]
book->Worksheets->Item[1]->Cells->Rows->Item[2]->Hidden = true;

See Also

IRangeRow Interface | NativeExcel Namespace | IRangeRows.Hidden Property | IRangeColumns.Hidden Property | IRangeColumn.Hidden Property