API Reference
OdpPresentation
Native OpenDocument Presentation document.
Inheritance
- OdfDocument
- OdpPresentation
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 OdpPresentation.Create
- Method OdpPresentation.Load
- Method OdpPresentation.Load
- Method OdpPresentation.LoadAsync
- Method OdpPresentation.LoadAsync
- Method OdpPresentation.LoadFlatXml
- Method OdpPresentation.LoadFlatXml
Methods
public OdpPresentationLayout AddLayout(String name) #OdpPresentationLayoutAdds an empty presentation layout.
Parameters
- name System.String
public OdpMasterPage AddMasterPage(String name) #OdpMasterPageAdds an empty master page using the default page size.
Parameters
- name System.String
public OdpSlide AddSlide(String name = null) #OdpSlideAdds a slide using the default master and blank layout.
Parameters
- name System.String = null
public static OdpPresentation Create() #OdpPresentationCreates an empty ODF 1.4 presentation.
public static OdpPresentation Load(String path, OdfLoadOptions options = null) #OdpPresentationLoads an ODP document from a path.
Parameters
- path System.String
- options OfficeIMO.OpenDocument.OdfLoadOptions = null
public static OdpPresentation Load(Stream stream, OdfLoadOptions options = null) #OdpPresentationLoads an ODP document from a stream.
Parameters
- stream System.IO.Stream
- options OfficeIMO.OpenDocument.OdfLoadOptions = null
public static async Task<OdpPresentation> LoadAsync(String path, OdfLoadOptions options = null, CancellationToken cancellationToken = null) #Task<OdpPresentation>Asynchronously loads an ODP document from a path.
Parameters
- path System.String
- options OfficeIMO.OpenDocument.OdfLoadOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static async Task<OdpPresentation> LoadAsync(Stream stream, OdfLoadOptions options = null, CancellationToken cancellationToken = null) #Task<OdpPresentation>Asynchronously loads an ODP document from a caller-owned stream.
Parameters
- stream System.IO.Stream
- options OfficeIMO.OpenDocument.OdfLoadOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static OdpPresentation LoadFlatXml(Stream stream, OdfLoadOptions options = null) #OdpPresentationLoads a flat OpenDocument Presentation XML stream.
Parameters
- stream System.IO.Stream
- options OfficeIMO.OpenDocument.OdfLoadOptions = null
public static OdpPresentation LoadFlatXml(String path, OdfLoadOptions options = null) #OdpPresentationLoads a flat OpenDocument Presentation XML path.
Parameters
- path System.String
- options OfficeIMO.OpenDocument.OdfLoadOptions = null
public Void MoveSlide(Int32 sourceIndex, Int32 destinationIndex) #VoidMoves a slide to a zero-based position.
Parameters
- sourceIndex System.Int32
- destinationIndex System.Int32
public Void RemoveSlide(Int32 index) #VoidRemoves a slide by zero-based index.
Parameters
- index System.Int32
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
public Byte[] GetPackageEntryBytes(String path) #Byte[]Parameters
- path String
public OdfSaveResult Save(OdfSaveOptions options = null) #OdfSaveResultParameters
- options OdfSaveOptions = null
public OdfSaveResult Save(String path, OdfSaveOptions options = null) #OdfSaveResultParameters
- path String
- options OdfSaveOptions = null
public OdfSaveResult Save(Stream destination, OdfSaveOptions options = null) #OdfSaveResultParameters
- destination Stream
- options OdfSaveOptions = null
public Task<OdfSaveResult> SaveAsync(CancellationToken cancellationToken = null) #Task<OdfSaveResult>Parameters
- cancellationToken CancellationToken = null
public Task<OdfSaveResult> SaveAsync(OdfSaveOptions options, CancellationToken cancellationToken = null) #Task<OdfSaveResult>Parameters
- options OdfSaveOptions
- cancellationToken CancellationToken = null
public async Task<OdfSaveResult> SaveAsync(String path, OdfSaveOptions options = null, CancellationToken cancellationToken = null) #Task<OdfSaveResult>Parameters
- path String
- options OdfSaveOptions = null
- cancellationToken CancellationToken = null
public async Task<OdfSaveResult> SaveAsync(Stream destination, OdfSaveOptions options = null, CancellationToken cancellationToken = null) #Task<OdfSaveResult>Parameters
- destination Stream
- options OdfSaveOptions = null
- cancellationToken CancellationToken = null
public OdfSaveResult SaveCopy(String path, OdfSaveOptions options = null) #OdfSaveResultParameters
- path String
- options OdfSaveOptions = null
public async Task<OdfSaveResult> SaveCopyAsync(String path, OdfSaveOptions options = null, CancellationToken cancellationToken = null) #Task<OdfSaveResult>Parameters
- path String
- options OdfSaveOptions = null
- cancellationToken CancellationToken = null
public OdfSaveResult SaveFlatXml(Stream destination) #OdfSaveResultParameters
- destination Stream
public OdfSaveResult SaveFlatXml(String path) #OdfSaveResultParameters
- path String
public OdfSaveResult Serialize(OdfSaveOptions options = null) #OdfSaveResultParameters
- options OdfSaveOptions = null
public Byte[] ToBytes(OdfSaveOptions options = null) #Byte[]Parameters
- options OdfSaveOptions = null
public MemoryStream ToStream(OdfSaveOptions options = null) #MemoryStreamParameters
- options OdfSaveOptions = null
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.
Inherited Properties
public OdfDocumentKind Kind { get; } #public String FilePath { get; } #public OdfVersion Version { get; } #public OdfDocumentMetadata Metadata { get; } #public OdfStyleRepository Styles { get; } #public IReadOnlyList<OdfDiagnostic> Diagnostics { get; } #public IReadOnlyList<String> PackageEntries { get; } #