Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdpPresentation

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
be6c300e4ab1 with working tree changes
Implements
IDisposable
Modifiers
sealed

Native OpenDocument Presentation document.

Inheritance

Usage

Explore 4 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.

Methods

public OdpPresentationLayout AddLayout(string name) #

Adds an empty presentation layout.

Parameters

name string required
public OdpMasterPage AddMasterPage(string name) #

Adds an empty master page using the default page size.

Parameters

name string required
public OdpSlide AddSlide(string? name = null) #

Adds a slide using the default master and blank layout.

Parameters

name string? = null optional

Returns

OdpSlide
public static OdpPresentation Create() #

Creates an empty ODF 1.4 presentation.

Load 2 overloads
public static OdpPresentation Load(string path, OdfLoadOptions? options = null) #

Loads an ODP document from a path.

Parameters

path string required
options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional
public static OdpPresentation Load(Stream stream, OdfLoadOptions? options = null) #

Loads an ODP document from a stream.

Parameters

stream System.IO.Stream required
options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional
LoadAsync 2 overloads
public static async Task<OdpPresentation> LoadAsync(string path, OdfLoadOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously loads an ODP document from a path.

Parameters

path string required
options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OdpPresentation>
public static async Task<OdpPresentation> LoadAsync(Stream stream, OdfLoadOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously loads an ODP document from a caller-owned stream.

Parameters

stream System.IO.Stream required
options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OdpPresentation>
LoadFlatXml 2 overloads
public static OdpPresentation LoadFlatXml(Stream stream, OdfLoadOptions? options = null) #

Loads a flat OpenDocument Presentation XML stream.

Parameters

stream System.IO.Stream required
options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional
public static OdpPresentation LoadFlatXml(string path, OdfLoadOptions? options = null) #

Loads a flat OpenDocument Presentation XML path.

Parameters

path string required
options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional
public void MoveSlide(int sourceIndex, int destinationIndex) #

Moves a slide to a zero-based position.

Parameters

sourceIndex int required
destinationIndex int required
public void RemoveSlide(int index) #

Removes a slide by zero-based index.

Parameters

index int required

Properties

public IReadOnlyList<OdpSlide> Slides { get; } #

Slides in presentation order.

public IReadOnlyList<OdpMasterPage> MasterPages { get; } #

Master pages stored in styles.xml.

public IReadOnlyList<OdpPresentationLayout> Layouts { get; } #

Presentation page layouts stored in styles.xml.

public OdfLength PageWidth { get; set; } #

Width of the default presentation page.

public OdfLength PageHeight { get; set; } #

Height of the default presentation page.