Table of Contents

Class FormulaToken

Namespace
OdfKit.Formula
Assembly
OdfKit.dll

Represents a lexical token in a formula. 代表公式中的一個語彙基元。

public class FormulaToken
Inheritance
FormulaToken
Inherited Members

Constructors

FormulaToken(TokenType, string, int)

Represents a lexical token in a formula. 代表公式中的一個語彙基元。

public FormulaToken(TokenType type, string value, int startIndex)

Parameters

type TokenType

The token type. / 語彙基元型別。

value string

The token content. / 語彙基元內容。

startIndex int

The starting index in the original formula string. / 原始公式字串中的起始索引位置。

Properties

StartIndex

Gets the starting index of the token in the original formula string. 取得語彙基元在原始公式字串中的起始索引。

public int StartIndex { get; }

Property Value

int

Type

Gets the token type. 取得語彙基元的型別。

public TokenType Type { get; }

Property Value

TokenType

Value

Gets the token string value. 取得語彙基元的字串值。

public string Value { get; }

Property Value

string