SpreadJS Documentation
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 GcSpread.Sheets.Sheet(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, GcSpread.Sheets.SheetArea.viewport);
var width = activeSheet.getColumnWidth(1, GcSpread.Sheets.SheetArea.viewport);
alert(visible);
alert(width);
Remarks
The default value is 62 pixels.
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.