SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / getRowHeight Method
The row index.
The sheet area. If this parameter is not given, it defaults to viewport.
Whether get the dynamic size. If not given, it defaults to false. If this parameter is true, and dynamic size is not set, will return undefined.
In This Topic
    getRowHeight Method
    In This Topic
    Gets the height in pixels or the dynamic size for the specified row in the specified sheet area.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: any
    value = instance.getRowHeight(row, sheetArea, getDynamicSize);
    function getRowHeight( 
       row : number,
       (optional) sheetArea : SheetArea,
       (optional) getDynamicSize : boolean
    ) : any;

    Parameters

    row
    The row index.
    sheetArea
    The sheet area. If this parameter is not given, it defaults to viewport.
    getDynamicSize
    Whether get the dynamic size. If not given, it defaults to false. If this parameter is true, and dynamic size is not set, will return undefined.

    Return Value

    The row height in pixels or the dynamic size.
    Example
    This example returns the height for the specified row.
    var rheight = activeSheet.getRowHeight(1,GC.Spread.Sheets.SheetArea.viewport);
    alert(rheight);
    Remarks
    The default value is 20 pixels.
    See Also

    Reference

    Worksheet type