SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / addSpan Method
The row index of the cell at which to start the span.
The column index of the cell at which to start the span.
The number of rows to span.
The number of columns to span.
The sheet area. If this parameter is not given, it defaults to viewport.
In This Topic
    addSpan Method
    In This Topic
    Adds a span of cells to this sheet in the specified sheet area.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: any
    value = instance.addSpan(row, column, rowCount, colCount, sheetArea);
    function addSpan( 
       row : number,
       column : number,
       rowCount : number,
       colCount : number,
       (optional) sheetArea : SheetArea
    ) : any;

    Parameters

    row
    The row index of the cell at which to start the span.
    column
    The column index of the cell at which to start the span.
    rowCount
    The number of rows to span.
    colCount
    The number of columns to span.
    sheetArea
    The sheet area. If this parameter is not given, it defaults to viewport.
    Example
    This example creates cell spans.
    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