NativeExcel for .Net Developer's Reference

IRangeRows.Hidden Property

Gets or sets a value that indicates whether the rows are hidden.

[Visual Basic]
Property Hidden As Boolean
[C#]
bool Hidden { get; set; }
[C++]
__property bool get_Hidden();
__property void set_Hidden(bool );
[JScript]
function get Hidden() : bool
function set Hidden(bool);

Property Value

true if the rows are hidden; otherwise, false.

Example

This example hides the rows in the specified range.

[C#]
book.Worksheets[1].Range["A4:B8"].Rows.Hidden = true;
[Visual Basic]
book.Worksheets(1).Range("A4:B8").Rows.Hidden = True
[C++]
book->Worksheets->Item[1]->Range->Item[S"A4:B8"]->Rows->Hidden = true;

See Also

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