SpreadsheetGear 2023
Hidden Property (IRange)

SpreadsheetGear Namespace > IRange Interface : Hidden Property
Gets or sets the property which specifies whether rows or columns should be hidden.
Property Hidden As System.Boolean
Dim instance As IRange
Dim value As System.Boolean
instance.Hidden = value
value = instance.Hidden
System.bool Hidden {get; set;}
This property only works on ranges returned by IRange.Rows, IRange.EntireRows, IRange.Columns and IRange.EntireColumns.
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

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


IRange Interface
IRange Members