LayoutSlide

ForEach.LayoutSlide method

Iterate each LayoutSlide in the Presentation.

public static void LayoutSlide(Presentation pres, ForEachLayoutSlideCallback forEachLayoutSlide)
ParameterTypeDescription
presPresentationPresentation to iterate layout slides
forEachLayoutSlideForEachLayoutSlideCallbackCallback that will be invoked for each layout slide

Examples

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

See Also