MasterSlide

ForEach.MasterSlide method

Iterate each MasterSlide in the Presentation.

public static void MasterSlide(Presentation pres, ForEachMasterSlideCallback forEachMasterSlide)
ParameterTypeDescription
presPresentationPresentation to iterate master slides
forEachMasterSlideForEachMasterSlideCallbackCallback that will be invoked for each master slide

Examples

using (Presentation pres = new Presentation("pres.pptx"))
{
    ForEach.MasterSlide(pres, (slide, index) =>
    {
        slide.Name = $"MasterSlide #{index}";
    });
} 

See Also