Presentation()
Contents
[
Hide
]Presentation::Presentation() constructor
This constructor creates new presentation from scratch. Created presentation has one empty slide.
Aspose::Slides::Presentation::Presentation()
Presentation::Presentation(System::SharedPtr<Aspose::Slides::LoadOptions>) constructor
This constructor creates new presentation from scratch. Created presentation has one empty slide.
Aspose::Slides::Presentation::Presentation(System::SharedPtr<Aspose::Slides::LoadOptions> loadOptions)
Arguments
Parameter | Type | Description |
---|---|---|
loadOptions | System::SharedPtr<Aspose::Slides::LoadOptions> | Additional load options. |
Presentation::Presentation(System::SharedPtr<System::IO::Stream>) constructor
This constructor is the primary mechanism for reading an existing Presentation.
Aspose::Slides::Presentation::Presentation(System::SharedPtr<System::IO::Stream> stream)
Arguments
Parameter | Type | Description |
---|---|---|
stream | System::SharedPtr<System::IO::Stream> | Input stream. |
Remarks
auto fis = MakeObject<IO::FileStream>(u"demo.pptx", IO::FileMode::Open, IO::FileAccess::Read);
auto pres = MakeObject<Presentation>(fis);
fis->Close();
Presentation::Presentation(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Aspose::Slides::LoadOptions>) constructor
This constructor is the primary mechanism for reading an existing Presentation.
Aspose::Slides::Presentation::Presentation(System::SharedPtr<System::IO::Stream> stream, System::SharedPtr<Aspose::Slides::LoadOptions> loadOptions)
Arguments
Parameter | Type | Description |
---|---|---|
stream | System::SharedPtr<System::IO::Stream> | Input stream. |
loadOptions | System::SharedPtr<Aspose::Slides::LoadOptions> | Additional load options. |
Presentation::Presentation(System::String) constructor
This constructor gets a source file path from which the contents of the Presentation are read.
Aspose::Slides::Presentation::Presentation(System::String file)
Arguments
Parameter | Type | Description |
---|---|---|
file | System::String | Input file. |
Remarks
auto pres = MakeObject<Presentation>(u"demo.pptx");
Presentation::Presentation(System::String, System::SharedPtr<Aspose::Slides::LoadOptions>) constructor
This constructor gets a source file path from which the contents of the Presentation are read.
Aspose::Slides::Presentation::Presentation(System::String file, System::SharedPtr<Aspose::Slides::LoadOptions> loadOptions)
Arguments
Parameter | Type | Description |
---|---|---|
file | System::String | Input file. |
loadOptions | System::SharedPtr<Aspose::Slides::LoadOptions> | Additional load options. |
See Also
- Typedef SharedPtr
- Class Presentation
- Class LoadOptions
- Class Stream
- Class String
- Namespace Aspose::Slides
- Library Aspose.Slides