SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / Base class / parse Method
The parse text string.
The parse format string.
The context associated with the cell type. See the Remarks for more information.
In This Topic
    parse Method
    In This Topic
    Parses the text with the specified format string to an object.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.Base();
    var value; // Type: Object
    value = instance.parse(text, formatStr, context);
    function parse( 
       text : string,
       formatStr : string,
       context : Object
    ) : Object;

    Parameters

    text
    The parse text string.
    formatStr
    The parse format string.
    context
    The context associated with the cell type. See the Remarks for more information.

    Return Value

    The parsed object.
    Remarks

    The context parameter can include the following items:

    Item Type Description
    context.sheet GC.Spread.Sheets.Sheet instance Indicates the current sheet.
    context.row number The row index.
    context.col number The column index.
    context.sheetArea GC.Spread.Sheets.SheetArea The current sheet area.

     

    See Also

    Reference

    Base class