Table of Contents

Class FormulaDocumentBuilder

Namespace
OdfKit.Formula
Assembly
OdfKit.dll

Builds FormulaDocument content with a fluent API. 提供 FormulaDocument 的 Fluent 建立 API。

public sealed class FormulaDocumentBuilder
Inheritance
FormulaDocumentBuilder
Inherited Members

Methods

Build()

Builds and returns the formula document. 建立並傳回公式文件。

public FormulaDocument Build()

Returns

FormulaDocument

The built formula document. / 建立完成的公式文件。

WithIdentifierEquation(string, string)

Creates a simple identifier equation (left = right). 建立簡單的識別名稱等式(left = right)。

public FormulaDocumentBuilder WithIdentifierEquation(string leftIdentifier, string rightIdentifier)

Parameters

leftIdentifier string

The identifier on the left side of the equals sign. / 等號左側識別名稱。

rightIdentifier string

The identifier on the right side of the equals sign. / 等號右側識別名稱。

Returns

FormulaDocumentBuilder

The current builder instance. / 目前 builder 執行個體。

WithMathML(string)

Sets formula content from complete MathML XML. 以完整 MathML XML 設定公式內容。

public FormulaDocumentBuilder WithMathML(string mathMlXml)

Parameters

mathMlXml string

The well-formed MathML XML. / 格式正確的 MathML XML。

Returns

FormulaDocumentBuilder

The current builder instance. / 目前 builder 執行個體。

WithTokens(params OdfMathToken[])

Creates the formula row from a set of MathML tokens. 以一組 MathML token 建立公式 row。

public FormulaDocumentBuilder WithTokens(params OdfMathToken[] tokens)

Parameters

tokens OdfMathToken[]

The token collection to write. / 要寫入的 token 集合。

Returns

FormulaDocumentBuilder

The current builder instance. / 目前 builder 執行個體。