目錄 / Table of Contents

Class OdfExternalLinkManager

Namespace
OdfKit.Spreadsheet
Assembly
OdfKit.dll

Manages the external document loading delegate and local cache for cross-document spreadsheet formula references. 管理試算表跨文件公式引用的外部文件載入委派與本機快取。

public sealed class OdfExternalLinkManager
Inheritance
OdfExternalLinkManager
Inherited Members

Constructors

OdfExternalLinkManager()

public OdfExternalLinkManager()

Properties

DocumentResolver

Gets or sets the external document loading delegate. The parameter is the document identifier from the formula reference, such as file:///other.ods. 取得或設定外部文件載入委派。參數為公式參照中的文件識別碼,例如 file:///other.ods

public Func<string, SpreadsheetDocument?>? DocumentResolver { get; set; }

Property Value

Func<string, SpreadsheetDocument>

Methods

ClearCache()

Clears all external cell caches. 清除所有外部儲存格快取。

public void ClearCache()

ClearCachedValues()

Clears cached external cell values and returns the number removed. 清除外部儲存格快取值,並傳回移除數量。

public int ClearCachedValues()

Returns

int

The number of removed values. / 已移除的值數量。

FindCachedValue(string, string, OdfCellAddress)

Finds a cached external cell value. 尋找外部儲存格快取值。

public OdfExternalCellCacheInfo? FindCachedValue(string documentId, string sheetName, OdfCellAddress address)

Parameters

documentId string

The external document identifier. / 外部文件識別碼。

sheetName string

The external worksheet name. / 外部工作表名稱。

address OdfCellAddress

The external cell address. / 外部儲存格位址。

Returns

OdfExternalCellCacheInfo

The cached value information, or null. / 快取值資訊;若不存在則為 null

GetCachedValues()

Gets a stable snapshot of all cached external cell values. 取得所有外部儲存格快取值的穩定快照。

public IReadOnlyList<OdfExternalCellCacheInfo> GetCachedValues()

Returns

IReadOnlyList<OdfExternalCellCacheInfo>

The cached value snapshot. / 快取值快照。

RemoveCachedValue(string, string, OdfCellAddress)

Removes a cached external cell value. 移除外部儲存格快取值。

public bool RemoveCachedValue(string documentId, string sheetName, OdfCellAddress address)

Parameters

documentId string

The external document identifier. / 外部文件識別碼。

sheetName string

The external worksheet name. / 外部工作表名稱。

address OdfCellAddress

The external cell address. / 外部儲存格位址。

Returns

bool

true if the value was removed; otherwise false. / 若已移除值則為 true,否則為 false

SetCachedValue(string, string, OdfCellAddress, object?)

Sets a cached external cell value. 設定外部儲存格快取值。

public void SetCachedValue(string documentId, string sheetName, OdfCellAddress address, object? value)

Parameters

documentId string

The external document identifier. / 外部文件識別碼。

sheetName string

The external sheet name. / 外部工作表名稱。

address OdfCellAddress

The external cell address. / 外部儲存格位址。

value object

The cached value. / 快取值。