SpreadJS Documentation
getAutoFitWidth Method
The cell's value.
The cell's text.
The cell's actual value.
The current sheet's zoom factor.
The context associated with the cell type. See the Remarks for more information.
Gets a cell's width that can be used to handle the column's automatic fit.
Syntax
var instance = new GcSpread.Sheets.BaseCellType();
var returnValue; // Type: number
returnValue = instance.getAutoFitWidth(value, text, cellStyle, zoomFactor, context);
function getAutoFitWidth( 
   value : object,
   text : string,
   cellStyle : Style,
   zoomFactor : number,
   context : object
) : number;

Parameters

value
The cell's value.
text
The cell's text.
cellStyle
The cell's actual value.
zoomFactor
The current sheet's zoom factor.
context
The context associated with the cell type. See the Remarks for more information.

Return Value

Returns the cell's width that can be used to handle the column's automatic fit.
See Also

Reference

BaseCellType type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.