Collect

Collect class

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

public static class Collect

Methods

NameDescription
static Shapes(Presentation)收集 Presentation 中的所有 Shape 实例。

Examples

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

See Also