SpreadsheetGear 2023
Hidden Property (IRange)
Example 


SpreadsheetGear Namespace > IRange Interface : Hidden Property
Gets or sets the property which specifies whether rows or columns should be hidden.
Syntax
'Declaration
 
Property Hidden As System.Boolean
'Usage
 
Dim instance As IRange
Dim value As System.Boolean
 
instance.Hidden = value
 
value = instance.Hidden
System.bool Hidden {get; set;}
Remarks
This property only works on ranges returned by IRange.Rows, IRange.EntireRows, IRange.Columns and IRange.EntireColumns.
Example
Hide column B of a worksheet.
// Create a worksheet.
IWorksheet worksheet = Factory.GetWorkbook().Worksheets[0];
 
// Hide column B of the worksheet.
worksheet.Cells["B:B"].Columns.Hidden = true;
' Create a worksheet.
Dim worksheet As IWorksheet = Factory.GetWorkbook().Worksheets(0)
  
' Hide column B of the worksheet.
worksheet.Cells("B:B").Columns.Hidden = True
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IRange Interface
IRange Members