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
Parameter | Type | Description |
---|---|---|
pres | System::SharedPtr<Presentation> | Presentation to iterate master slides |
forEachMasterSlide | ForEach::ForEachMasterSlideCallback | Callback 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
- Typedef SharedPtr
- Typedef ForEachMasterSlideCallback
- Class Presentation
- Class ForEach
- Namespace Aspose::Slides::LowCode
- Library Aspose.Slides