SpreadJS Documentation
shrinkToFit Method
Set to true to have the cell shrink text to fit.
Gets or sets whether the cell shrinks the text to fit the cell size.
Syntax
var instance = new GcSpread.Sheets.Cell(sheet, row, col, sheetArea);
var returnValue; // Type: boolean
returnValue = instance.shrinkToFit(value);
function shrinkToFit( 
   value : boolean
) : boolean;

Parameters

value
Set to true to have the cell shrink text to fit.

Return Value

true if the cell shrinks text to fit; otherwise, false.
Example
This example sets the shrinkToFit method.
activeSheet.getCell(1,1).shrinkToFit(true);
See Also

Reference

Cell type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.