IWorkKeynoteDocument
OfficeIMO.IWork
Creates native Keynote presentations containing positioned text, PNG/JPEG images and scalar tables.
Inheritance
- object
- IWorkKeynoteDocument
Remarks
This creation model does not modify loaded iWork packages. Instances are not thread safe.
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
- Method IWorkKeynoteDocument.Create
Methods
public IWorkKeynoteSlideBuilder AddSlide(string backgroundColor = "FFFFFF") #Adds a blank slide with an opaque six-digit sRGB background color.
Parameters
- backgroundColor string = "FFFFFF"
Returns
IWorkKeynoteSlideBuilderpublic static IWorkKeynoteDocument Create(float widthPoints = 960, float heightPoints = 540) #Creates an empty presentation with a 960 by 540 point canvas by default.
Parameters
- widthPoints float = 960
- heightPoints float = 540
Returns
IWorkKeynoteDocumentpublic static IWorkKeynoteDocument Create(string path) #Creates a native authoring model associated with a path, without writing a file.
Parameters
- path string
Returns
IWorkKeynoteDocumentpublic void Dispose() #Completes this managed authoring model's lifetime. No native application, file or caller stream is retained.
public void Save(Stream destination, IWorkKeynoteSaveOptions? options = null, CancellationToken cancellationToken = default) #Writes a completed package at the stream's current position and leaves the stream open.
Parameters
- destination System.IO.Stream
- options OfficeIMO.IWork.IWorkKeynoteSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public void Save(string path, bool overwrite = false, IWorkKeynoteSaveOptions? options = null, CancellationToken cancellationToken = default) #Atomically saves a native Keynote package, rejecting an existing path unless overwrite is enabled.
Parameters
- path string
- overwrite bool = false
- options OfficeIMO.IWork.IWorkKeynoteSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public void Save(bool overwrite = false, IWorkKeynoteSaveOptions? options = null, CancellationToken cancellationToken = default) #Saves to the associated path; replacing an existing file still requires explicit overwrite.
Parameters
- overwrite bool = false
- options OfficeIMO.IWork.IWorkKeynoteSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public byte[] ToBytes(IWorkKeynoteSaveOptions? options = null, CancellationToken cancellationToken = default) #Encodes a deterministic native single-file Keynote package without a template or native application.
Parameters
- options OfficeIMO.IWork.IWorkKeynoteSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
byte[]