get_SlidesLayoutOptions()
IRenderingOptions::get_SlidesLayoutOptions() method
Gets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
virtual System::SharedPtr<ISlidesLayoutOptions> Aspose::Slides::Export::IRenderingOptions::get_SlidesLayoutOptions()=0
Remarks
Example:
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"pres.pptx");
System::SharedPtr<HandoutLayoutingOptions> slidesLayoutOptions = System::MakeObject<HandoutLayoutingOptions>();
slidesLayoutOptions->set_Handout(HandoutType::Handouts4Horizontal);
slidesLayoutOptions->set_PrintSlideNumbers(false);
System::SharedPtr<RenderingOptions> options = System::MakeObject<RenderingOptions>();
options->set_SlidesLayoutOptions(slidesLayoutOptions);
System::ArrayPtr<System::SharedPtr<System::Drawing::Bitmap>> handoutSlides = pres->GetThumbnails(options);
for (int32_t index = 0; index < handoutSlides->get_Length(); index++)
{
auto handoutSlide = handoutSlides[index];
handoutSlide->Save(System::String::Format(u"handout-{0}.png", index));
}
See Also
- Typedef SharedPtr
- Class ISlidesLayoutOptions
- Class IRenderingOptions
- Namespace Aspose::Slides::Export
- Library Aspose.Slides