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
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
documentIdstringThe external document identifier. / 外部文件識別碼。
sheetNamestringThe external worksheet name. / 外部工作表名稱。
addressOdfCellAddressThe external cell address. / 外部儲存格位址。
Returns
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
documentIdstringThe external document identifier. / 外部文件識別碼。
sheetNamestringThe external worksheet name. / 外部工作表名稱。
addressOdfCellAddressThe external cell address. / 外部儲存格位址。
Returns
SetCachedValue(string, string, OdfCellAddress, object?)
Sets a cached external cell value. 設定外部儲存格快取值。
public void SetCachedValue(string documentId, string sheetName, OdfCellAddress address, object? value)
Parameters
documentIdstringThe external document identifier. / 外部文件識別碼。
sheetNamestringThe external sheet name. / 外部工作表名稱。
addressOdfCellAddressThe external cell address. / 外部儲存格位址。
valueobjectThe cached value. / 快取值。