Presentation
Contents
[
Hide
]Presentation()
This constructor creates new presentation from scratch. Created presentation has one empty slide.
public Presentation()
See Also
- class Presentation
- namespace Aspose.Slides
- assembly Aspose.Slides
Presentation(LoadOptions)
This constructor creates new presentation from scratch. Created presentation has one empty slide.
public Presentation(LoadOptions loadOptions)
Parameter | Type | Description |
---|---|---|
loadOptions | LoadOptions | Additional load options. |
See Also
- class LoadOptions
- class Presentation
- namespace Aspose.Slides
- assembly Aspose.Slides
Presentation(Stream)
This constructor is the primary mechanism for reading an existing Presentation.
public Presentation(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | Input stream. |
Examples
[C#]
FileStream fis = new FileStream("demo.pptx", FileMode.Open, FileAccess.Read);
Presentation pres = new Presentation(fis);
fis.Close();
[Visual Basic]
Dim fis As FileStream = New FileStream("demo.pptx", FileMode.Open, FileAccess.Read)
Dim pres As Presentation = New Presentation(fis)
fis.Close()
See Also
- class Presentation
- namespace Aspose.Slides
- assembly Aspose.Slides
Presentation(Stream, LoadOptions)
This constructor is the primary mechanism for reading an existing Presentation.
public Presentation(Stream stream, LoadOptions loadOptions)
Parameter | Type | Description |
---|---|---|
stream | Stream | Input stream. |
loadOptions | LoadOptions | Additional load options. |
See Also
- class LoadOptions
- class Presentation
- namespace Aspose.Slides
- assembly Aspose.Slides
Presentation(string)
This constructor gets a source file path from which the contents of the Presentation are read.
public Presentation(string file)
Parameter | Type | Description |
---|---|---|
file | String | Input file. |
Exceptions
exception | condition |
---|---|
ArgumentException | Thrown when input file has zero length |
Examples
[C#]
Presentation pres = new Presentation("demo.pptx");
[Visual Basic]
Dim pres As Presentation = New Presentation("demo.pptx")
See Also
- class Presentation
- namespace Aspose.Slides
- assembly Aspose.Slides
Presentation(string, LoadOptions)
This constructor gets a source file path from which the contents of the Presentation are read.
public Presentation(string file, LoadOptions loadOptions)
Parameter | Type | Description |
---|---|---|
file | String | Input file. |
loadOptions | LoadOptions | Additional load options. |
Exceptions
exception | condition |
---|---|
ArgumentException | Thrown when input file has zero length |
See Also
- class LoadOptions
- class Presentation
- namespace Aspose.Slides
- assembly Aspose.Slides