GetSummarySection
SummaryZoomSectionCollection.GetSummarySection 方法
返回给定部分的摘要缩放部分元素。
public ISummaryZoomSection GetSummarySection(ISection section)
参数 | 类型 | 描述 |
---|---|---|
section | ISection | 要查找的部分 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]);
}