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

ParameterTypeDescription
presSystem::SharedPtr<Presentation>Presentation to iterate layout slides
forEachLayoutSlideForEach::ForEachLayoutSlideCallbackCallback 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