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

    Parameters

    value
    The cell value.

    Return Value

    If no value is set, returns the cell value; otherwise, returns the cell.
    Example
    This example returns information about the specified cell.
    activeSheet.getCell(-1, 3).visible(false);
    activeSheet.getCell(0,3).value("Test");
    activeSheet.getCell(-1, 1).width(100);
    This example returns the value in the specified cell in the active sheet.
    activeSheet.getCell(1,1).value(10);
    
    Remarks
    The default value is null.
    See Also

    Reference

    CellRange type