Class FormulaTokenizer
Converts string into set of tokens.
Inheritance
System.Object
FormulaTokenizer
Namespace: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public class FormulaTokenizer : Object
Constructors
FormulaTokenizer(WorkbookImpl)
Default constructor.
Declaration
public FormulaTokenizer(WorkbookImpl book)
Parameters
Type | Name | Description |
---|---|---|
WorkbookImpl | book |
Fields
PreviousTokenType
Token type of the previous token.
Declaration
public FormulaToken PreviousTokenType
Field Value
Type |
---|
FormulaToken |
TokenType
Current token TokenType.
Declaration
public FormulaToken TokenType
Field Value
Type |
---|
FormulaToken |
Properties
ArgumentSeparator
Gets / sets argument separator.
Declaration
public char ArgumentSeparator { get; set; }
Property Value
Type |
---|
System.Char |
NumberFormat
Gets / sets number format info.
Declaration
public NumberFormatInfo NumberFormat { get; set; }
Property Value
Type |
---|
System.Globalization.NumberFormatInfo |
TokenString
Returns value of the current token. Read-only.
Declaration
public string TokenString { get; }
Property Value
Type |
---|
System.String |
Methods
NextToken()
Extracts next token from the string.
Declaration
public void NextToken()
Prepare(String)
Prepares tokinezer for formula parsing.
Declaration
public void Prepare(string formula)
Parameters
Type | Name | Description |
---|---|---|
System.String | formula | Formula to parse. |
RaiseException(String, Exception)
Raises parse exception.
Declaration
public void RaiseException(string msg, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
System.String | msg | Exception message. |
System.Exception | ex | Inner exception. |
RaiseUnexpectedToken(String)
Raises parser exception with message that token was unexpected.
Declaration
public void RaiseUnexpectedToken(string msg)
Parameters
Type | Name | Description |
---|---|---|
System.String | msg | Additional message. |
RestoreState()
Declaration
public void RestoreState()
SaveState()
Declaration
public void SaveState()