Class FormulaParser
Parses formula tokens extracted by FormulaTokenizer and converts them into tokens in RPN form.
Inheritance
System.Object
FormulaParser
Namespace: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class FormulaParser : Object
Constructors
FormulaParser(WorkbookImpl)
Initializes new instance of the formula parser.
Declaration
public FormulaParser(WorkbookImpl book)
Parameters
Type | Name | Description |
---|---|---|
WorkbookImpl | book | Parent workbook object. |
Properties
NumberFormat
Gets / sets number format info.
Declaration
public NumberFormatInfo NumberFormat { get; set; }
Property Value
Type |
---|
System.Globalization.NumberFormatInfo |
Tokens
Declaration
public List<Ptg> Tokens { get; }
Property Value
Type |
---|
System.Collections.Generic.List<Ptg> |
Methods
Parse(String, Dictionary<Type, ReferenceIndexAttribute>, Int32, ExcelParseFormulaOptions, ParseParameters)
Parses formula string.
Declaration
public void Parse(string formula, Dictionary<Type, ReferenceIndexAttribute> indexes, int i, ExcelParseFormulaOptions options, ParseParameters arguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | formula | String to parse. |
System.Collections.Generic.Dictionary<System.Type, ReferenceIndexAttribute> | indexes | Dictionary with attributes that describes token index that should be used at special function position ( it can be reference token, value token, or array token ). |
System.Int32 | i | Index of the current argument. |
ExcelParseFormulaOptions | options | Parsing options. |
ParseParameters | arguments | Constant arguments required by some parse methods. |
SetSeparators(Char, Char)
Sets formula separators.
Declaration
public void SetSeparators(char operandsSeparator, char arrayRowsSeparator)
Parameters
Type | Name | Description |
---|---|---|
System.Char | operandsSeparator | Operand separator to set. |
System.Char | arrayRowsSeparator | Array rows separator to set. |