AddSummaryZoomSection

SummaryZoomSectionCollection.AddSummaryZoomSection 方法

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

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

返回值

添加的 ISummaryZoomFrame 元素

异常

異常条件
ArgumentException引用的节不属于当前演示文稿或不包含任何幻灯片。

备注

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

示例

该示例演示如何通过索引获取摘要缩放节元素:

[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]);
}

另见