GetSummarySection

SummaryZoomSectionCollection.GetSummarySection method

返回给定部分的摘要缩放部分元素。

public ISummaryZoomSection GetSummarySection(ISection section)
范围类型描述
sectionISection要查找的部分ISection

返回值

ISummaryZoomSection如果集合不包含该部分的元素,则为 null。

例子

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

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

也可以看看