SpreadJS Documentation
autoFitColumn Method
The column index.
Automatically fits the viewport column.
Syntax
var instance = new GcSpread.Sheets.Sheet(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);
Remarks

See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.