SpreadJS Documentation
autoFitRow Method
The row index.
Automatically fits the viewport row.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.autoFitRow(row);
function autoFitRow( 
   row : number
) : any;

Parameters

row
The row index.
Example
This example sets the row height based on the text.
activeSheet.setValue(0, 1, "testing\r\nmultiple\r\nlines");
activeSheet.getCell(0,1).wordWrap(true);
activeSheet.autoFitRow(0);
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.