目錄 / Table of Contents

Interface IOdfFormulaWorkbookContext

Namespace
OdfKit.Formula
Assembly
OdfKit.dll

Supplies workbook-level metadata and optional calculation services to formula evaluation. 提供公式評估所需的活頁簿層級中繼資料與選配計算服務。

public interface IOdfFormulaWorkbookContext : IEvaluationContext
Inherited Members

Properties

SheetNames

Gets worksheet names in document order. 依文件順序取得工作表名稱。

IReadOnlyList<string> SheetNames { get; }

Property Value

IReadOnlyList<string>

Methods

TryEvaluateMultipleOperations(IReadOnlyList<object>, out object)

Attempts to evaluate an OpenFormula multiple-operations data table. 嘗試評估 OpenFormula 多重運算資料表。

bool TryEvaluateMultipleOperations(IReadOnlyList<object> arguments, out object result)

Parameters

arguments IReadOnlyList<object>

The evaluated function arguments. / 已評估的函式引數。

result object

The calculated data-table result when available. / 可取得時計算出的資料表結果。

Returns

bool

true when the data table was evaluated; otherwise, false. / 已評估資料表時為 true,否則為 false

TryGetPivotData(string, OdfCellAddress, IReadOnlyDictionary<string, object>, out object)

Attempts to obtain a pivot-table value for a data field and field filters. 嘗試依資料欄位與欄位篩選條件取得樞紐分析表值。

bool TryGetPivotData(string dataField, OdfCellAddress pivotAnchor, IReadOnlyDictionary<string, object> filters, out object result)

Parameters

dataField string

The pivot data-field name. / 樞紐分析表資料欄位名稱。

pivotAnchor OdfCellAddress

A cell in the pivot table. / 樞紐分析表內的儲存格。

filters IReadOnlyDictionary<string, object>

The field-name to item-value filters. / 欄位名稱至項目值的篩選條件。

result object

The resolved value when available. / 可取得時解析出的值。

Returns

bool

true when a value is available; otherwise, false. / 可取得值時為 true,否則為 false