LayoutSlide

ForEach.LayoutSlide method

迭代每个LayoutSlidePresentation中。

public static void LayoutSlide(Presentation pres, ForEachLayoutSlideCallback forEachLayoutSlide)
范围类型描述
presPresentation演示迭代布局幻灯片
forEachLayoutSlideForEachLayoutSlideCallback回调将为每个布局幻灯片调用

例子

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

也可以看看