Presentation()

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

ParameterTypeDescription
loadOptionsSystem::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

ParameterTypeDescription
streamSystem::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

ParameterTypeDescription
streamSystem::SharedPtr<System::IO::Stream>Input stream.
loadOptionsSystem::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

ParameterTypeDescription
fileSystem::StringInput 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

ParameterTypeDescription
fileSystem::StringInput file.
loadOptionsSystem::SharedPtr<Aspose::Slides::LoadOptions>Additional load options.

See Also