Enum XlsxFormulaTokenKind
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
What a token of a formula is.
public enum XlsxFormulaTokenKind
Fields
Whitespace = 0Spaces and line breaks. Between two references a space is also the intersection operator; the tree says which.
Number = 1A number:
12,1.5,2E-3.Text = 2A text literal with its quotation marks:
"many".Boolean = 3TRUEorFALSE.Error = 4An error literal:
#N/A,#REF!.Operator = 5An operator:
+ - * / ^ & = <> < > <= >= % : @ #.OpenParenthesis = 6An opening parenthesis.
CloseParenthesis = 7A closing parenthesis.
Comma = 8A comma: between arguments, between the items of an array constant's row, or the union operator.
Semicolon = 9A semicolon: between the rows of an array constant.
OpenBrace = 10The opening brace of an array constant.
CloseBrace = 11The closing brace of an array constant.
Function = 12A function's name, without its parenthesis:
SUM,_xlfn.XLOOKUP.Name = 13A defined name, with its sheet when it has one:
Rate,Data!Rate.Reference = 14A reference to cells, with its sheet when it has one:
B4,$B$4:D8,A:C,'My Sheet'!1:3.StructuredReference = 15A structured reference to a table:
Table1[Qty],[@Qty].R1C1Reference = 16A reference in the R1C1 notation (
R[1]C[-1],R5C2). It is kept as text; a workbook file never holds one.Unknown = 17Characters that are not part of a formula, such as a text literal that never closes.