Class OdfFormulaBuilder
Builds OdfFormulaDocument content with a fluent API. 提供 OdfFormulaDocument 的 Fluent 建立 API。
public sealed class OdfFormulaBuilder
- Inheritance
-
OdfFormulaBuilder
- Inherited Members
Methods
Build()
Builds and returns the formula document. 建立並傳回公式文件。
public OdfFormulaDocument Build()
Returns
- OdfFormulaDocument
The built formula document. / 建立完成的公式文件。
WithIdentifierEquation(string, string)
Creates a simple identifier equation (left = right).
建立簡單的識別名稱等式(left = right)。
public OdfFormulaBuilder WithIdentifierEquation(string leftIdentifier, string rightIdentifier)
Parameters
leftIdentifierstringThe identifier on the left side of the equals sign. / 等號左側識別名稱。
rightIdentifierstringThe identifier on the right side of the equals sign. / 等號右側識別名稱。
Returns
- OdfFormulaBuilder
The current builder instance. / 目前 builder 執行個體。
WithMathML(string)
Sets formula content from complete MathML XML. 以完整 MathML XML 設定公式內容。
public OdfFormulaBuilder WithMathML(string mathMlXml)
Parameters
mathMlXmlstringThe well-formed MathML XML. / 格式正確的 MathML XML。
Returns
- OdfFormulaBuilder
The current builder instance. / 目前 builder 執行個體。
WithTokens(params OdfMathToken[])
Creates the formula row from a set of MathML tokens. 以一組 MathML token 建立公式 row。
public OdfFormulaBuilder WithTokens(params OdfMathToken[] tokens)
Parameters
tokensOdfMathToken[]The token collection to write. / 要寫入的 token 集合。
Returns
- OdfFormulaBuilder
The current builder instance. / 目前 builder 執行個體。