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

    Parameters

    value
    The content of the watermark.

    Return Value

    If no value is set, returns the content of the watermark; otherwise, returns the cell.
    Example
    This example uses the watermark method.
    activeSheet.getCell(1,1).watermark("lightgreen");
    See Also

    Reference

    CellRange type