SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / getTag Method
The row index.
The column index.
The sheet area. If this parameter is not provided, it defaults to viewport.
In This Topic
    getTag Method
    In This Topic
    Gets the tag value from the specified cell in the specified sheet area.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: Object
    value = instance.getTag(row, col, sheetArea);
    function getTag( 
       row : number,
       col : number,
       sheetArea : SheetArea
    ) : Object;

    Parameters

    row
    The row index.
    col
    The column index.
    sheetArea
    The sheet area. If this parameter is not provided, it defaults to viewport.

    Return Value

    Returns the tag value of the cell.
    Example
    This example adds and gets a cell tag.
    activeSheet.getRange(1, -1, 1, -1).tag("row tag");
    alert(activeSheet.getTag(1,-1,GC.Spread.Sheets.SheetArea.viewport));
    See Also

    Reference

    Worksheet type