IWorkNativeEditSession
OfficeIMO.IWork
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
- leftPoints float
- topPoints float
- cancellationToken System.Threading.CancellationToken = default
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
- widthPoints float
- heightPoints float
- cancellationToken System.Threading.CancellationToken = default
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
- options OfficeIMO.IWork.IWorkNativeSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IWorkNativeSaveReportpublic 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
- overwrite bool = false
- options OfficeIMO.IWork.IWorkNativeSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IWorkNativeSaveReportpublic 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
- options OfficeIMO.IWork.IWorkNativeSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IWorkNativeSaveReportpublic 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
- paragraph int
- text string
- cancellationToken System.Threading.CancellationToken = default
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
- row int
- column int
- value bool
- cancellationToken System.Threading.CancellationToken = default
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
- row int
- column int
- value double
- cancellationToken System.Threading.CancellationToken = default
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
- paragraph int
- text string
- cancellationToken System.Threading.CancellationToken = default
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
- cancellationToken System.Threading.CancellationToken = default
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
- options OfficeIMO.IWork.IWorkNativeSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
byte[]