Class OdfFormulaAnalysis
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
originalFormulastringThe original formula. / 原始公式。
normalizedFormulastringThe normalized formula used for parsing. / 供剖析使用的標準化公式。
serializedFormulastringThe reserialized formula, or null when safe serialization is unavailable. / 重新序列化的公式,若無法安全序列化則為 null。
functionsIReadOnlyList<string>The function names found in the formula. / 公式中出現的函式名稱。
diagnosticsIReadOnlyList<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
Diagnostics
Gets the diagnostic list. 取得診斷清單。
public IReadOnlyList<OdfFormulaDiagnostic> Diagnostics { get; }
Property Value
Functions
Gets the function names found in the formula. 取得公式中出現的函式名稱。
public IReadOnlyList<string> Functions { get; }
Property Value
HasUnsupportedFunctions
Gets a value indicating whether the formula contains functions unsupported by the default evaluator. 取得一個值,指出公式包含預設評估器不支援的函式。
public bool HasUnsupportedFunctions { get; }
Property Value
NormalizedFormula
Gets the normalized formula used for parsing. 取得供剖析使用的標準化公式。
public string NormalizedFormula { get; }
Property Value
OriginalFormula
Gets the original formula. 取得原始公式。
public string OriginalFormula { get; }
Property Value
SerializedFormula
Gets the reserialized formula, or null when safe serialization is unavailable. 取得重新序列化的公式,若無法安全序列化則為 null。
public string? SerializedFormula { get; }