API Reference
IWorkNativeEditSession
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) #VoidMoves a direct, unlocked, unrotated and unmasked Keynote image within its slide canvas.
Parameters
- identity OfficeIMO.IWork.IWorkObjectIdentity
- leftPoints System.Single
- topPoints System.Single
- cancellationToken System.Threading.CancellationToken = default
public Void ResizeKeynoteImage(IWorkObjectIdentity identity, Single widthPoints, Single heightPoints, CancellationToken cancellationToken = default) #VoidResizes a direct, unlocked, unrotated and unmasked Keynote image within its slide canvas.
Parameters
- identity OfficeIMO.IWork.IWorkObjectIdentity
- widthPoints System.Single
- heightPoints System.Single
- cancellationToken System.Threading.CancellationToken = default
public IWorkNativeSaveReport Save(Stream destination, IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #IWorkNativeSaveReportWrites 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
public IWorkNativeSaveReport Save(String path, Boolean overwrite = false, IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #IWorkNativeSaveReportAtomically publishes a native ZIP package. Existing destinations require explicit overwrite.
Parameters
- path System.String
- overwrite System.Boolean = false
- options OfficeIMO.IWork.IWorkNativeSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public Byte[] SaveBytes(IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #Byte[]Encodes a native ZIP package, preserving all unmodified captured entry payloads.
Parameters
- options OfficeIMO.IWork.IWorkNativeSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public IWorkNativeSaveResult SaveBytesResult(IWorkNativeSaveOptions? options = null, CancellationToken cancellationToken = default) #IWorkNativeSaveResultEncodes a native ZIP package and returns its operation-level preservation report.
Parameters
- options OfficeIMO.IWork.IWorkNativeSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public Void SetKeynoteTextBoxParagraphText(IWorkObjectIdentity textBoxIdentity, Int32 paragraph, String text, CancellationToken cancellationToken = default) #VoidReplaces one plain paragraph in a direct Keynote text box without moving native offsets.
Parameters
- textBoxIdentity OfficeIMO.IWork.IWorkObjectIdentity
- paragraph System.Int32
- text System.String
- cancellationToken System.Threading.CancellationToken = default
public Void SetNumbersCellBoolean(IWorkObjectIdentity tableIdentity, Int32 row, Int32 column, Boolean value, CancellationToken cancellationToken = default) #VoidReplaces an existing boolean Numbers cell while preserving its native type, styles and identities.
Parameters
- tableIdentity OfficeIMO.IWork.IWorkObjectIdentity
- row System.Int32
- column System.Int32
- value System.Boolean
- cancellationToken System.Threading.CancellationToken = default
public Void SetNumbersCellNumber(IWorkObjectIdentity tableIdentity, Int32 row, Int32 column, Double value, CancellationToken cancellationToken = default) #VoidReplaces an existing numeric Numbers cell without changing its native type, styles or identities.
Parameters
- tableIdentity OfficeIMO.IWork.IWorkObjectIdentity
- row System.Int32
- column System.Int32
- value System.Double
- cancellationToken System.Threading.CancellationToken = default
public Void SetPagesBodyParagraphText(IWorkObjectIdentity bodyIdentity, Int32 paragraph, String text, CancellationToken cancellationToken = default) #VoidReplaces one uniform body paragraph while preserving its native text and byte offsets.
Parameters
- bodyIdentity OfficeIMO.IWork.IWorkObjectIdentity
- paragraph System.Int32
- text System.String
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public IWorkSourceDocument Source { get; } #Gets the immutable source snapshot used by this edit session.