NativeExcel for .Net Developer's Reference

IRangeRow.Hidden Property

Gets or sets a value that indicates whether the row is 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 row is hidden; otherwise, false.

Example

This example hides the second row on sheet one.

[C#]
book.Worksheets[1].Cells.Rows[2].Hidden = true;
[Visual Basic]
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