Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

IWorkNativeEditSession

OfficeIMO.IWork

Namespace
OfficeIMO.IWork
Assembly
OfficeIMO.IWork
Source revision
273d35d5ba8a with working tree changes
Implements
IDisposable
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 Dispose() #

Completes the managed editing lifetime without disposing its independently owned source snapshot.

public void MoveKeynoteImage(IWorkObjectIdentity identity, float leftPoints, float topPoints, CancellationToken cancellationToken = default) #

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

Parameters

identity OfficeIMO.IWork.IWorkObjectIdentity required
leftPoints float required
topPoints float required
cancellationToken System.Threading.CancellationToken = default optional
public void ResizeKeynoteImage(IWorkObjectIdentity identity, float widthPoints, float heightPoints, CancellationToken cancellationToken = default) #

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

Parameters

identity OfficeIMO.IWork.IWorkObjectIdentity required
widthPoints float required
heightPoints float required
cancellationToken System.Threading.CancellationToken = default optional
Save 3 overloads
public IWorkNativeSaveReport Save(Stream destination, IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #

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

Parameters

destination System.IO.Stream required
options OfficeIMO.IWork.IWorkNativeSaveOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public IWorkNativeSaveReport Save(string path, bool overwrite = false, IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #

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

Parameters

path string required
overwrite bool = false optional
options OfficeIMO.IWork.IWorkNativeSaveOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public IWorkNativeSaveReport Save(bool overwrite = false, IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #

Saves to the associated path, preserving explicit overwrite and source-directory containment rules.

Parameters

overwrite bool = false optional
options OfficeIMO.IWork.IWorkNativeSaveOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public void SetKeynoteTextBoxParagraphText(IWorkObjectIdentity textBoxIdentity, int paragraph, string text, CancellationToken cancellationToken = default) #

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

Parameters

textBoxIdentity OfficeIMO.IWork.IWorkObjectIdentity required
paragraph int required
text string required
cancellationToken System.Threading.CancellationToken = default optional
public void SetNumbersCellBoolean(IWorkObjectIdentity tableIdentity, int row, int column, bool value, CancellationToken cancellationToken = default) #

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

Parameters

tableIdentity OfficeIMO.IWork.IWorkObjectIdentity required
row int required
column int required
value bool required
cancellationToken System.Threading.CancellationToken = default optional
public void SetNumbersCellNumber(IWorkObjectIdentity tableIdentity, int row, int column, double value, CancellationToken cancellationToken = default) #

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

Parameters

tableIdentity OfficeIMO.IWork.IWorkObjectIdentity required
row int required
column int required
value double required
cancellationToken System.Threading.CancellationToken = default optional
public void SetPagesBodyParagraphText(IWorkObjectIdentity bodyIdentity, int paragraph, string text, CancellationToken cancellationToken = default) #

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

Parameters

bodyIdentity OfficeIMO.IWork.IWorkObjectIdentity required
paragraph int required
text string required
cancellationToken System.Threading.CancellationToken = default optional
ToBytes 2 overloads
public byte[] ToBytes(IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #

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

Parameters

options OfficeIMO.IWork.IWorkNativeSaveOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

byte[]
public byte[] ToBytes(out IWorkNativeSaveReport report, IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #

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

Parameters

report OfficeIMO.IWork.IWorkNativeSaveReport required
options OfficeIMO.IWork.IWorkNativeSaveOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

byte[]

Properties

public IWorkSourceDocument Source { get; } #

Gets the immutable source snapshot used by this edit session.

public string? FilePath { get; private set; } #

Gets the last successful output path, falling back to the captured source file.