Presentation
Overview
Presentation is a class in Aspose.Slides FOSS for .NET.
Inherits from: IPresentation, IDisposable.
Represents a Microsoft PowerPoint presentation document. Supports loading from files, streams, or creating new empty presentations.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
CurrentDateTime | DateTime | Read/Write | Gets the current date and time used for placeholders |
Slides | ISlideCollection | Read | |
NotesSize | INotesSize | Read | Gets or sets the size of notes slides |
LayoutSlides | IGlobalLayoutSlideCollection | Read | Accesses the global layout slide collection |
Masters | IMasterSlideCollection | Read | Accesses the master slide collection |
Sections | ISectionCollection | Read | Accesses the collection of sections in the presentation |
CommentAuthors | ICommentAuthorCollection | Read | Accesses the collection of comment authors |
DocumentProperties | IDocumentProperties | Read | Accesses core, app, and custom document properties |
Images | IImageCollection | Read | Provides access to embedded images in the presentation |
SourceFormat | SourceFormat | Read | Indicates the original file format of the loaded presentation |
FirstSlideNumber | int | Read/Write | |
AsIPresentationComponent | IPresentationComponent | Read |
Methods
| Signature | Description |
|---|---|
Presentation() | Creates a new presentation using the specified load options |
Presentation(loadOptions: ILoadOptions) | Options controlling load behavior. |
Presentation(stream: Stream) | A stream containing the presentation data. |
Presentation(stream: Stream, loadOptions: ILoadOptions) | Options controlling load behavior. |
Presentation(file: string) | The path to the presentation file. |
Presentation(file: string, loadOptions: ILoadOptions) | Options controlling load behavior. |
Save(fname: string, format: SaveFormat) | Saves to a file using the format and additional save options |
Save(stream: Stream, format: SaveFormat) | |
Save(fname: string, format: SaveFormat, options: ISaveOptions) | |
Save(stream: Stream, format: SaveFormat, options: ISaveOptions) | |
Save(fname: string, slides: int[], format: SaveFormat) | |
Save(fname: string, slides: int[], format: SaveFormat, options: ISaveOptions) | |
Save(stream: Stream, slides: int[], format: SaveFormat) | |
Save(stream: Stream, slides: int[], format: SaveFormat, options: ISaveOptions) | |
Save(options: ISaveOptions) | |
Dispose() | Releases resources used by this presentation. |