Spread.Sheets Documentation
autoFitColumn Method
GC.Spread.Sheets Namespace > Worksheet type : autoFitColumn Method
The column index.
Automatically fits the viewport column.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: any
value = instance.autoFitColumn(column);
function autoFitColumn( 
   column : number
) : any;

Parameters

column
The column index.
Example
This example sets the column width based on the text.
activeSheet.setValue(0, 1, "testing");
activeSheet.autoFitColumn(1);
See Also

Reference

Worksheet type