MasterSlide()

ForEach::MasterSlide(System::SharedPtr<Presentation>, ForEach::ForEachMasterSlideCallback) method

Iterate each ForEach::MasterSlide in the Presentation.

static void Aspose::Slides::LowCode::ForEach::MasterSlide(System::SharedPtr<Presentation> pres, ForEach::ForEachMasterSlideCallback forEachMasterSlide)

Arguments

ParameterTypeDescription
presSystem::SharedPtr<Presentation>Presentation to iterate master slides
forEachMasterSlideForEach::ForEachMasterSlideCallbackCallback that will be invoked for each master slide

Remarks

auto pres = System::MakeObject<Presentation>(u"pres.pptx");

auto callback = std::function<void(SharedPtr<MasterSlide> slide, int32_t index)>([](SharedPtr<MasterSlide> slide, int32_t index)
{
    slide->set_Name(String::Format(u"MasterSlide #{0}", index));
});

ForEach::MasterSlide(pres, callback);

See Also