NativeExcel2 for .Net Developer's Reference

IRangeColumns.Hidden Property

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

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

Property Value

true if the columns are hidden; otherwise, false.

Example

This example hides the columns in the specified range.

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

See Also

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