Slide

ForEach.Slide method

Iterate each Slide in the Presentation.

public static void Slide(Presentation pres, ForEachSlideCallback forEachSlide)
ParameterTypeDescription
presPresentationPresentation to iterate slides
forEachSlideForEachSlideCallbackCallback that will be invoked for each slide

Examples

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

See Also