LayoutSlide

ForEach.LayoutSlide method

Iterate each LayoutSlide in the Presentation.

public static void LayoutSlide(Presentation pres, ForEachLayoutSlideCallback forEachLayoutSlide)
Parameter Type Description
pres Presentation Presentation to iterate layout slides
forEachLayoutSlide ForEachLayoutSlideCallback Callback 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