SpreadJS 13
GC.Spread.Sheets Namespace / CellRange type / height Method
The cell row height.
In This Topic
    height Method
    In This Topic
    Gets or sets the height of the row in pixels.
    Syntax
    var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
    var returnValue; // Type: any
    returnValue = instance.height(value);
    function height( 
       (optional) value : number
    ) : any;

    Parameters

    value
    The cell row height.

    Return Value

    If no value is set, returns the row height; otherwise, returns the row.
    Example
    This example sets the row height.
    activeSheet.getRange(-1, 2, -1, 1, GC.Spread.Sheets.SheetArea.viewport).vAlign(GC.Spread.Sheets.VerticalAlign.bottom);
    activeSheet.getRange(-1, 2, -1, 1, GC.Spread.Sheets.SheetArea.viewport).hAlign(GC.Spread.Sheets.HorizontalAlign.left);
    activeSheet.getCell(0,2).text("Test");
    activeSheet.getRange(0, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).height(90);
    Remarks
    The default value is 20 pixels.
    See Also

    Reference

    CellRange type