SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / setRowCount Method
The row count.
The sheet area. If this parameter is not given, it defaults to viewport.
In This Topic
    setRowCount Method
    In This Topic
    Sets the row count in the specified sheet area.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: any
    value = instance.setRowCount(rowCount, sheetArea);
    function setRowCount( 
       rowCount : number,
       (optional) sheetArea : SheetArea
    ) : any;

    Parameters

    rowCount
    The row count.
    sheetArea
    The sheet area. If this parameter is not given, it defaults to viewport.
    Example
    This example sets the row count.
    sheet.setRowCount(4,1);
    sheet.setColumnCount(4,2);
    sheet.addSpan(0,0,3,3,GC.Spread.Sheets.SheetArea.colHeader);
    sheet.addSpan(0,0,3,3,GC.Spread.Sheets.SheetArea.rowHeader);
    sheet.addSpan(0,0,3,3,GC.Spread.Sheets.SheetArea.viewport);
    See Also

    Reference

    Worksheet type