Collect

Collect 类

表示一组旨在从 Presentation 收集不同类型模型对象的方法。

public static class Collect

方法

名称描述
static Shapes(Presentation)Presentation 中收集所有 Shape 实例。

示例

using (Presentation pres = new Presentation("pres.pptx"))
{
    foreach (Shape shape in Collect.Shapes(pres))
    {
        // ... 更改形状格式或其他属性
    }
}    

另见