ComOfficeKitby KDAN API Reference for Windows
Table of Contents

Class WorkbookSaveSync

Namespace
ComOfficeKit.Model
Assembly
ComOfficeKit.dll

The Apple SDK's WorkbookSaveSync, on one workbook: each method is the Swift function of its name, run by the engine on the workbook as one undo step. A position or an id comes from a model read, such as GetWorkbook(), and a snapshot read before an edit keeps its old values: read again after one.

public sealed class WorkbookSaveSync
Inheritance
WorkbookSaveSync
Inherited Members

Methods

CommittedCellEdit(string, CellReference, long)

The Apple SDK's WorkbookSaveSync.committedCellEdit(text:at:sheetIndex:in:), on this workbook. One undo step.

public long CommittedCellEdit(string text, CellReference at, long sheetIndex)

Parameters

text string

Swift's text (String).

at CellReference

Swift's at (CellReference): column from 1 to 16384; row from 1 to 1048576.

sheetIndex long

Swift's sheetIndex (Int): from 0 to 65535.

Returns

long

The workbook's ModelRevision after the edit.

Exceptions

ComOfficeKitException

InvalidArgument when the engine refuses an argument, or the function makes no edit with them.

CommittedCellEdits(IReadOnlyList<(CellReference Ref, string Text)>, long)

The Apple SDK's WorkbookSaveSync.committedCellEdits(_:sheetIndex:in:), on this workbook. One undo step.

public long CommittedCellEdits(IReadOnlyList<(CellReference Ref, string Text)> edits, long sheetIndex)

Parameters

edits IReadOnlyList<(CellReference Ref, string Text)>

Swift's edits ([(ref: CellReference, text: String)]).

sheetIndex long

Swift's sheetIndex (Int): from 0 to 65535.

Returns

long

The workbook's ModelRevision after the edit.

Exceptions

ComOfficeKitException

InvalidArgument when the engine refuses an argument, or the function makes no edit with them.