SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / getPrecedents Method
The row index.
The column index.
In This Topic
    getPrecedents Method
    In This Topic
    Gets the precedent CellRange information object array of the cell.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: any
    value = instance.getPrecedents(row, col);
    function getPrecedents( 
       row : number,
       col : number
    ) : any;

    Parameters

    row
    The row index.
    col
    The column index.

    Return Value

    Returns precedent cellRange information object array precedentsInfo.row {number} Indicates the cellRange row index. precedentsInfo.col {number} Indicates the cellRange col index. precedentsInfo.rowCount {number} Indicates the cellRange row count. precedentsInfo.colCount {number} Indicates the cellRange colcount. precedentsInfo.sheetName {string} Indicates the workSheet name.
    Example
    sheet.getPrecedents(1, 1);
    See Also

    Reference

    Worksheet type