LayoutSlide()
ForEach::LayoutSlide(System::SharedPtr<Presentation>, ForEach::ForEachLayoutSlideCallback) method
Iterate each ForEach::LayoutSlide in the Presentation.
static void Aspose::Slides::LowCode::ForEach::LayoutSlide(System::SharedPtr<Presentation> pres, ForEach::ForEachLayoutSlideCallback forEachLayoutSlide)
Arguments
Parameter | Type | Description |
---|---|---|
pres | System::SharedPtr<Presentation> | Presentation to iterate layout slides |
forEachLayoutSlide | ForEach::ForEachLayoutSlideCallback | Callback that will be invoked for each layout slide |
Remarks
auto pres = System::MakeObject<Presentation>(u"pres.pptx");
auto callback = std::function<void(SharedPtr<LayoutSlide> layoutSlide, int32_t index)>([](SharedPtr<LayoutSlide> layoutSlide, int32_t index)
{
layoutSlide->set_Name(String::Format(u"LayoutSlide #{0}", index));
});
ForEach::LayoutSlide(pres, callback);
See Also
- Typedef SharedPtr
- Typedef ForEachLayoutSlideCallback
- Class Presentation
- Class ForEach
- Namespace Aspose::Slides::LowCode
- Library Aspose.Slides