AddSummaryZoomSection

ISummaryZoomSectionCollection.AddSummaryZoomSection 方法

创建新的摘要缩放部分对象并将其添加到集合中

public ISummaryZoomSection AddSummaryZoomSection(ISection section)
参数类型描述
sectionISection新的摘要缩放部分元素的节 ISection

返回值

添加的 ISummaryZoomFrame 元素

备注

如果该节的元素已存在于集合中,则返回现有元素。

示例

该示例演示了通过索引获取摘要缩放部分元素:

[C#]
using (Presentation pres = new Presentation("pres.pptx"))
{
    ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame) pres.Slides[1].Shapes[0];
    ISummaryZoomSectionCollection collection = zoomFrame.SummaryZoomCollection;
    ISummaryZoomSection newZoomSection = collection.AddSummaryZoomSection(pres.Sections[3]);
}

参见