Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

IWorkKeynoteDocument

Namespace OfficeIMO.IWork
Assembly OfficeIMO.IWork
Modifiers sealed

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

Methods

public IWorkKeynoteSlideBuilder AddSlide(String backgroundColor = "FFFFFF") #
Returns: IWorkKeynoteSlideBuilder

Adds a blank slide with an opaque six-digit sRGB background color.

Parameters

backgroundColor System.String = "FFFFFF" optionalposition: 0
public static IWorkKeynoteDocument Create(Single widthPoints = 960, Single heightPoints = 540) #
Returns: IWorkKeynoteDocument

Creates an empty presentation with a 960 by 540 point canvas by default.

Parameters

widthPoints System.Single = 960 optionalposition: 0
heightPoints System.Single = 540 optionalposition: 1
Save 2 overloads
public Void Save(Stream destination, IWorkKeynoteWriteOptions options = null, CancellationToken cancellationToken = default) #
Returns: Void

Writes a completed package at the stream's current position and leaves the stream open.

Parameters

destination System.IO.Stream requiredposition: 0
options OfficeIMO.IWork.IWorkKeynoteWriteOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
public Void Save(String path, Boolean overwrite = false, IWorkKeynoteWriteOptions options = null, CancellationToken cancellationToken = default) #
Returns: Void

Atomically saves a native Keynote package, rejecting an existing path unless overwrite is enabled.

Parameters

path System.String requiredposition: 0
overwrite System.Boolean = false optionalposition: 1
options OfficeIMO.IWork.IWorkKeynoteWriteOptions = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
public Byte[] SaveBytes(IWorkKeynoteWriteOptions options = null, CancellationToken cancellationToken = default) #
Returns: Byte[]

Encodes a deterministic native single-file Keynote package without a template or native application.

Parameters

options OfficeIMO.IWork.IWorkKeynoteWriteOptions = null optionalposition: 0
cancellationToken System.Threading.CancellationToken = default optionalposition: 1

Properties

public IWorkCanvasSize SlideSize { get; } #

Gets the presentation canvas size in points.

public IReadOnlyList<IWorkKeynoteSlideBuilder> Slides { get; } #

Gets the slides in presentation order.