目錄 / Table of Contents

Class OdsSparseEditor

Namespace
OdfKit.Spreadsheet
Assembly
OdfKit.dll

Applies coordinate-based edits to an existing ODS package without materializing the sheet DOM. 在不具現化工作表 DOM 的情況下,對既有 ODS 封裝套用座標式編輯。

public static class OdsSparseEditor
Inheritance
OdsSparseEditor
Inherited Members

Methods

ApplyAsync(Stream, Stream, IEnumerable<OdsCellPatch>, OdsSparseEditorOptions?, CancellationToken)

Applies cell patches while streaming the source package to the destination. 將來源封裝串流至目的地,同時套用儲存格修補。

public static Task ApplyAsync(Stream source, Stream destination, IEnumerable<OdsCellPatch> patches, OdsSparseEditorOptions? options, CancellationToken cancellationToken)

Parameters

source Stream

The seekable source ODS stream. / 可搜尋的來源 ODS 串流。

destination Stream

The empty writable destination stream. / 空白且可寫入的目的串流。

patches IEnumerable<OdsCellPatch>

The cell patches. / 儲存格修補項目。

options OdsSparseEditorOptions

The resource limits. / 資源限制。

cancellationToken CancellationToken

The cancellation token. / 取消權杖。

Returns

Task

A task representing the operation. / 代表作業的工作。

ApplyFileAsync(string, string, IEnumerable<OdsCellPatch>, OdsSparseEditorOptions?, CancellationToken)

Applies cell patches to a file through a same-directory temporary file and atomic replacement. 透過同目錄暫存檔與原子取代,對檔案套用儲存格修補。

public static Task ApplyFileAsync(string sourcePath, string destinationPath, IEnumerable<OdsCellPatch> patches, OdsSparseEditorOptions? options, CancellationToken cancellationToken)

Parameters

sourcePath string

The source ODS path. / 來源 ODS 路徑。

destinationPath string

The destination ODS path, which may equal the source path. / 目的 ODS 路徑,可與來源相同。

patches IEnumerable<OdsCellPatch>

The cell patches. / 儲存格修補項目。

options OdsSparseEditorOptions

The resource limits. / 資源限制。

cancellationToken CancellationToken

The cancellation token. / 取消權杖。

Returns

Task

A task representing the operation. / 代表作業的工作。