API Reference
IWorkKeynoteDocument
Creates native Keynote presentations containing positioned, uniformly styled text boxes.
Inheritance
- Object
- IWorkKeynoteDocument
Remarks
This creation model does not modify loaded iWork packages. Instances are not thread safe.
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method IWorkKeynoteDocument.Create
Methods
public IWorkKeynoteSlideBuilder AddSlide(String backgroundColor = "FFFFFF") #IWorkKeynoteSlideBuilderAdds a blank slide with an opaque six-digit sRGB background color.
Parameters
- backgroundColor System.String = "FFFFFF"
public static IWorkKeynoteDocument Create(Single widthPoints = 960, Single heightPoints = 540) #IWorkKeynoteDocumentCreates an empty presentation with a 960 by 540 point canvas by default.
Parameters
- widthPoints System.Single = 960
- heightPoints System.Single = 540
public Void Save(Stream destination, IWorkKeynoteWriteOptions options = null, CancellationToken cancellationToken = default) #VoidWrites a completed package at the stream's current position and leaves the stream open.
Parameters
- destination System.IO.Stream
- options OfficeIMO.IWork.IWorkKeynoteWriteOptions = null
- cancellationToken System.Threading.CancellationToken = default
public Void Save(String path, Boolean overwrite = false, IWorkKeynoteWriteOptions options = null, CancellationToken cancellationToken = default) #VoidAtomically saves a native Keynote package, rejecting an existing path unless overwrite is enabled.
Parameters
- path System.String
- overwrite System.Boolean = false
- options OfficeIMO.IWork.IWorkKeynoteWriteOptions = null
- cancellationToken System.Threading.CancellationToken = default
public Byte[] SaveBytes(IWorkKeynoteWriteOptions options = null, CancellationToken cancellationToken = default) #Byte[]Encodes a deterministic native single-file Keynote package without a template or native application.
Parameters
- options OfficeIMO.IWork.IWorkKeynoteWriteOptions = null
- cancellationToken System.Threading.CancellationToken = default