Spread.Sheets Documentation
getColumnWidth Method
GC.Spread.Sheets Namespace > Worksheet type : getColumnWidth Method
The column index.
The sheet area. If this parameter is not given, it defaults to viewport.
Gets the width in pixels for the specified column in the specified sheet area.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: number
value = instance.getColumnWidth(col, sheetArea);
function getColumnWidth( 
   col : number,
   sheetArea : SheetArea
) : number;

Parameters

col
The column index.
sheetArea
The sheet area. If this parameter is not given, it defaults to viewport.

Return Value

The column width in pixels.
Example
This example returns the visible and width settings for a column.
var visible = activeSheet.getColumnVisible(1, GC.Spread.Sheets.SheetArea.viewport);
var width = activeSheet.getColumnWidth(1, GC.Spread.Sheets.SheetArea.viewport);
alert(visible);
alert(width);
Remarks
The default value is 62 pixels.
See Also

Reference

Worksheet type