Spread.Sheets Documentation
setColumnVisible Method
GC.Spread.Sheets Namespace > Worksheet type : setColumnVisible Method
The column index.
Whether to display the column.
The sheet area. If this parameter is not given, it defaults to viewport.
Sets whether a column in the specified sheet area is displayed.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var returnValue; // Type: any
returnValue = instance.setColumnVisible(col, value, sheetArea);
function setColumnVisible( 
   col : number,
   value : boolean,
   sheetArea : SheetArea
) : any;

Parameters

col
The column index.
value
Whether to display the column.
sheetArea
The sheet area. If this parameter is not given, it defaults to viewport.
Example
This example sets the specified column to be hidden.
activeSheet.setColumnVisible(2,false,GC.Spread.Sheets.SheetArea.viewport);
See Also

Reference

Worksheet type