Table of Contents

Class BinaryNode

Namespace
OdfKit.Formula.AST
Assembly
OdfKit.dll

Represents an AST node for a binary operator. 代表二元運算子 (Binary Operator) 的 AST 節點。

public class BinaryNode : AstNode
Inheritance
BinaryNode
Inherited Members

Constructors

BinaryNode(string, AstNode, AstNode)

Represents an AST node for a binary operator. 代表二元運算子 (Binary Operator) 的 AST 節點。

public BinaryNode(string op, AstNode left, AstNode right)

Parameters

op string

The binary operator string. / 二元運算子字串。

left AstNode

The left AST node. / 左側 AST 節點。

right AstNode

The right AST node. / 右側 AST 節點。

Methods

Evaluate(IEvaluationContext)

Performs evaluate. 執行 Evaluate。

public override object Evaluate(IEvaluationContext context)

Parameters

context IEvaluationContext

The evaluation context. / 評估內容模型。

Returns

object

The evaluated result object. / 評估後的結果物件。

GetRanges(IEvaluationContext)

Gets ranges. 取得 Ranges。

public override List<OdfCellRange> GetRanges(IEvaluationContext context)

Parameters

context IEvaluationContext

The evaluation context. / 評估內容模型。

Returns

List<OdfCellRange>

The cell range list. / 儲存格範圍清單。

Serialize()

Performs serialize. 執行 Serialize。

public override string Serialize()

Returns

string

The serialized formula string. / 序列化後的公式字串。