MasterSlide

ForEach.MasterSlide method

迭代每个MasterSlidePresentation中。

public static void MasterSlide(Presentation pres, ForEachMasterSlideCallback forEachMasterSlide)
范围类型描述
presPresentation演示以迭代母版幻灯片
forEachMasterSlideForEachMasterSlideCallback回调将为每个母版幻灯片调用

例子

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

也可以看看