Table of Contents

Class OdfFormulaAnalysis

Namespace
OdfKit.Formula
Assembly
OdfKit.dll

Represents the result of formula analysis. 表示公式分析結果。

public sealed class OdfFormulaAnalysis
Inheritance
OdfFormulaAnalysis
Inherited Members

Constructors

OdfFormulaAnalysis(string, string, string?, IReadOnlyList<string>, IReadOnlyList<OdfFormulaDiagnostic>)

Initializes a new instance of the OdfFormulaAnalysis class. 初始化 OdfFormulaAnalysis 類別的新執行個體。

public OdfFormulaAnalysis(string originalFormula, string normalizedFormula, string? serializedFormula, IReadOnlyList<string> functions, IReadOnlyList<OdfFormulaDiagnostic> diagnostics)

Parameters

originalFormula string

The original formula. / 原始公式。

normalizedFormula string

The normalized formula used for parsing. / 供剖析使用的標準化公式。

serializedFormula string

The reserialized formula, or null when safe serialization is unavailable. / 重新序列化的公式,若無法安全序列化則為 null。

functions IReadOnlyList<string>

The function names found in the formula. / 公式中出現的函式名稱。

diagnostics IReadOnlyList<OdfFormulaDiagnostic>

The diagnostic list. / 診斷清單。

Properties

CanParse

Gets a value indicating whether the formula can be parsed and has no error diagnostics. 取得一個值,指出公式可被剖析且沒有錯誤診斷。

public bool CanParse { get; }

Property Value

bool

Diagnostics

Gets the diagnostic list. 取得診斷清單。

public IReadOnlyList<OdfFormulaDiagnostic> Diagnostics { get; }

Property Value

IReadOnlyList<OdfFormulaDiagnostic>

Functions

Gets the function names found in the formula. 取得公式中出現的函式名稱。

public IReadOnlyList<string> Functions { get; }

Property Value

IReadOnlyList<string>

HasUnsupportedFunctions

Gets a value indicating whether the formula contains functions unsupported by the default evaluator. 取得一個值,指出公式包含預設評估器不支援的函式。

public bool HasUnsupportedFunctions { get; }

Property Value

bool

NormalizedFormula

Gets the normalized formula used for parsing. 取得供剖析使用的標準化公式。

public string NormalizedFormula { get; }

Property Value

string

OriginalFormula

Gets the original formula. 取得原始公式。

public string OriginalFormula { get; }

Property Value

string

SerializedFormula

Gets the reserialized formula, or null when safe serialization is unavailable. 取得重新序列化的公式,若無法安全序列化則為 null。

public string? SerializedFormula { get; }

Property Value

string