Table of Contents

Enum XlsxFormulaTokenKind

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

What a token of a formula is.

public enum XlsxFormulaTokenKind

Fields

Whitespace = 0

Spaces and line breaks. Between two references a space is also the intersection operator; the tree says which.

Number = 1

A number: 12, 1.5, 2E-3.

Text = 2

A text literal with its quotation marks: "many".

Boolean = 3

TRUE or FALSE.

Error = 4

An error literal: #N/A, #REF!.

Operator = 5

An operator: + - * / ^ & = <> < > <= >= % : @ #.

OpenParenthesis = 6

An opening parenthesis.

CloseParenthesis = 7

A closing parenthesis.

Comma = 8

A comma: between arguments, between the items of an array constant's row, or the union operator.

Semicolon = 9

A semicolon: between the rows of an array constant.

OpenBrace = 10

The opening brace of an array constant.

CloseBrace = 11

The closing brace of an array constant.

Function = 12

A function's name, without its parenthesis: SUM, _xlfn.XLOOKUP.

Name = 13

A defined name, with its sheet when it has one: Rate, Data!Rate.

Reference = 14

A reference to cells, with its sheet when it has one: B4, $B$4:D8, A:C, 'My Sheet'!1:3.

StructuredReference = 15

A structured reference to a table: Table1[Qty], [@Qty].

R1C1Reference = 16

A reference in the R1C1 notation (R[1]C[-1], R5C2). It is kept as text; a workbook file never holds one.

Unknown = 17

Characters that are not part of a formula, such as a text literal that never closes.