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

Parameters

value
Set to true to let the contents in the cells in the row shrink to fit within the cell.

Return Value

true if the contents can shrink to fit; otherwise, false.
Example
This example uses the shrinkToFit method.
activeSheet.getRow(2).shrinkToFit(false);
See Also

Reference

Row type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.