SpreadsheetGear The Performance Spreadsheet Component Company 
Hidden Property
See Also  Example
SpreadsheetGear Namespace > IRange Interface : Hidden Property
Gets or sets the property which specifies whether rows or columns should be hidden.

Syntax

C# 
virtual bool Hidden {get; set;}

Example

Hide column B of a worksheet.
C#Copy Code
// Create a worksheet. 
IWorksheet worksheet = Factory.GetWorkbook().Worksheets[0]; 
  
// Hide column B of the worksheet. 
worksheet.Cells["B:B"].Columns.Hidden = true; 
    
Visual BasicCopy Code
' Create a worksheet.
Dim worksheet As IWorksheet = Factory.GetWorkbook().Worksheets(0)

' Hide column B of the worksheet.
worksheet.Cells("B:B").Columns.Hidden = True

Remarks

This property only works on ranges returned by IRange.Rows, IRange.EntireRows, IRange.Columns and IRange.EntireColumns.

Requirements

Platforms: Windows Vista, Windows XP, Windows Server 2008, Windows Server 2003, Windows 2000, Windows Me and Windows 98, including 32 bit and 64 bit editions where applicable. SpreadsheetGear for .NET 1.x requires the Microsoft .NET Framework 1.1 or .NET 2.0 (works with .NET 3.x). SpreadsheetGear for .NET 2007 requires the Microsoft .NET Framework 2.0 (works with .NET 3.x).

See Also