SpreadJS Documentation
shrinkToFit Method
Set to true to shrink the contents to fit within the cells.
Gets or sets whether the contents of the cells in the column can shrink to fit.
Syntax
var instance = new GcSpread.Sheets.Column(sheet, index, sheetArea);
var returnValue; // Type: boolean
returnValue = instance.shrinkToFit(value);
function shrinkToFit( 
   value : boolean
) : boolean;

Parameters

value
Set to true to shrink the contents to fit within the cells.

Return Value

true if the contents shrink to fit the cells; otherwise, false.
Example
This example uses the shrinkToFit method.
activeSheet.getColumn(3).shrinkToFit(true);
See Also

Reference

Column type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.