NamedRange.Hidden Property
Gets or sets an object that indicates whether the rows or columns are hidden.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
Property Hidden As Object
Get
Set
Object Hidden { get; set; }
Property Value
Type: System.Object
true if the rows or columns are hidden; otherwise, false.
Remarks
The NamedRange control must span an entire column or row. You must access this property using the EntireRow or EntireColumn property, for example namedRange1.EntireRow.Hidden = true.
Do not confuse this property with the FormulaHidden property.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.