Table of Contents

Class OdfFormulaSupport

Namespace
OdfKit.Formula
Assembly
OdfKit.dll

Analyzes OpenFormula support coverage, preservation-safe serialization, and diagnostics. 提供 OpenFormula 支援範圍、保真序列化與診斷工具。

public static class OdfFormulaSupport
Inheritance
OdfFormulaSupport
Inherited Members

Properties

SupportedFunctions

Gets the table of functions supported by the default formula evaluator. 取得預設公式評估器支援的函式表。

public static IReadOnlyList<OdfFormulaFunctionInfo> SupportedFunctions { get; }

Property Value

IReadOnlyList<OdfFormulaFunctionInfo>

Methods

Analyze(string)

Analyzes whether a formula can be parsed and whether it contains functions unsupported by the default evaluator. 分析公式是否可剖析,以及是否包含預設評估器不支援的函式。

public static OdfFormulaAnalysis Analyze(string formula)

Parameters

formula string

The formula to analyze. / 要分析的公式。

Returns

OdfFormulaAnalysis

The formula analysis result. / 公式分析結果。

IsFunctionSupported(string)

Determines whether the default evaluator supports the specified function. 判斷預設評估器是否支援指定函式。

public static bool IsFunctionSupported(string name)

Parameters

name string

The function name. / 函式名稱。

Returns

bool

True when the function is supported; otherwise, false. / 若支援則為 true,否則為 false。

SerializePreservingUnsupported(string)

Returns the reserialized form for supported formulas, while preserving unsupported or unparsable formulas. 支援的公式會回傳重新序列化結果;不支援或無法剖析時保留原公式。

public static string SerializePreservingUnsupported(string formula)

Parameters

formula string

The formula to serialize. / 要序列化的公式。

Returns

string

A preservation-safe formula string. / 安全的公式字串。