Interface IOdfFormulaWorkbookContext
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
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
argumentsIReadOnlyList<object>The evaluated function arguments. / 已評估的函式引數。
resultobjectThe calculated data-table result when available. / 可取得時計算出的資料表結果。
Returns
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
dataFieldstringThe pivot data-field name. / 樞紐分析表資料欄位名稱。
pivotAnchorOdfCellAddressA cell in the pivot table. / 樞紐分析表內的儲存格。
filtersIReadOnlyDictionary<string, object>The field-name to item-value filters. / 欄位名稱至項目值的篩選條件。
resultobjectThe resolved value when available. / 可取得時解析出的值。