Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

IWorkNativeEditSession

Namespace OfficeIMO.IWork
Assembly OfficeIMO.IWork
Modifiers sealed

Edits a captured native source without changing the immutable source model.

Inheritance

  • Object
  • IWorkNativeEditSession

Remarks

Instances are not thread safe. Supported mutations are direct Keynote image moves/resizes and existing Numbers numeric/boolean cells and fixed-length plain Pages body or direct Keynote text-box paragraphs in bounded modern profiles. Nested-index mutations are rejected. Unchanged saves support all modern read profiles.

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public Void MoveKeynoteImage(IWorkObjectIdentity identity, Single leftPoints, Single topPoints, CancellationToken cancellationToken = default) #
Returns: Void

Moves a direct, unlocked, unrotated and unmasked Keynote image within its slide canvas.

Parameters

identity OfficeIMO.IWork.IWorkObjectIdentity requiredposition: 0
leftPoints System.Single requiredposition: 1
topPoints System.Single requiredposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
public Void ResizeKeynoteImage(IWorkObjectIdentity identity, Single widthPoints, Single heightPoints, CancellationToken cancellationToken = default) #
Returns: Void

Resizes a direct, unlocked, unrotated and unmasked Keynote image within its slide canvas.

Parameters

identity OfficeIMO.IWork.IWorkObjectIdentity requiredposition: 0
widthPoints System.Single requiredposition: 1
heightPoints System.Single requiredposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
Save 2 overloads
public IWorkNativeSaveReport Save(Stream destination, IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #
Returns: IWorkNativeSaveReport

Writes a completed package at the caller stream's current position, leaves it open and returns the report.

Parameters

destination System.IO.Stream requiredposition: 0
options OfficeIMO.IWork.IWorkNativeSaveOptions? = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
public IWorkNativeSaveReport Save(String path, Boolean overwrite = false, IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #
Returns: IWorkNativeSaveReport

Atomically publishes a native ZIP package. Existing destinations require explicit overwrite.

Parameters

path System.String requiredposition: 0
overwrite System.Boolean = false optionalposition: 1
options OfficeIMO.IWork.IWorkNativeSaveOptions? = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
public Byte[] SaveBytes(IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #
Returns: Byte[]

Encodes a native ZIP package, preserving all unmodified captured entry payloads.

Parameters

options OfficeIMO.IWork.IWorkNativeSaveOptions? = null optionalposition: 0
cancellationToken System.Threading.CancellationToken = default optionalposition: 1
public IWorkNativeSaveResult SaveBytesResult(IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #
Returns: IWorkNativeSaveResult

Encodes a native ZIP package and returns its operation-level preservation report.

Parameters

options OfficeIMO.IWork.IWorkNativeSaveOptions? = null optionalposition: 0
cancellationToken System.Threading.CancellationToken = default optionalposition: 1
public Void SetKeynoteTextBoxParagraphText(IWorkObjectIdentity textBoxIdentity, Int32 paragraph, String text, CancellationToken cancellationToken = default) #
Returns: Void

Replaces one plain paragraph in a direct Keynote text box without moving native offsets.

Parameters

textBoxIdentity OfficeIMO.IWork.IWorkObjectIdentity requiredposition: 0
paragraph System.Int32 requiredposition: 1
text System.String requiredposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
public Void SetNumbersCellBoolean(IWorkObjectIdentity tableIdentity, Int32 row, Int32 column, Boolean value, CancellationToken cancellationToken = default) #
Returns: Void

Replaces an existing boolean Numbers cell while preserving its native type, styles and identities.

Parameters

tableIdentity OfficeIMO.IWork.IWorkObjectIdentity requiredposition: 0
row System.Int32 requiredposition: 1
column System.Int32 requiredposition: 2
value System.Boolean requiredposition: 3
cancellationToken System.Threading.CancellationToken = default optionalposition: 4
public Void SetNumbersCellNumber(IWorkObjectIdentity tableIdentity, Int32 row, Int32 column, Double value, CancellationToken cancellationToken = default) #
Returns: Void

Replaces an existing numeric Numbers cell without changing its native type, styles or identities.

Parameters

tableIdentity OfficeIMO.IWork.IWorkObjectIdentity requiredposition: 0
row System.Int32 requiredposition: 1
column System.Int32 requiredposition: 2
value System.Double requiredposition: 3
cancellationToken System.Threading.CancellationToken = default optionalposition: 4
public Void SetPagesBodyParagraphText(IWorkObjectIdentity bodyIdentity, Int32 paragraph, String text, CancellationToken cancellationToken = default) #
Returns: Void

Replaces one uniform body paragraph while preserving its native text and byte offsets.

Parameters

bodyIdentity OfficeIMO.IWork.IWorkObjectIdentity requiredposition: 0
paragraph System.Int32 requiredposition: 1
text System.String requiredposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3

Properties

public IWorkSourceDocument Source { get; } #

Gets the immutable source snapshot used by this edit session.