Class FormulaParser
Parses formula tokens extracted by FormulaTokenizer and converts them into tokens in RPN form.
Inheritance
System.Object
FormulaParser
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class FormulaParser
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 | Description |
---|---|
System.Globalization.NumberFormatInfo |
Tokens
Declaration
public List<Ptg> Tokens { get; }
Property Value
Type | Description |
---|---|
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. |