GC.Spread.Sheets Namespace > CellRange type : shrinkToFit Method |
true
to have the cell shrink text to fit.
var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea); var returnValue; // Type: any returnValue = instance.shrinkToFit(value);
function shrinkToFit( value : boolean ) : any;
true
to have the cell shrink text to fit.activeSheet.getRange(2,-1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).shrinkToFit(false); activeSheet.setText(2,0,"This is a test");
activeSheet.getCell(1,1).shrinkToFit(true);
activeSheet.getRange(-1, 3, -1, 1, GC.Spread.Sheets.SheetArea.viewport).shrinkToFit(true);