Item

ISummaryZoomSectionCollection 索引器

获取指定索引处的元素。只读 ISummaryZoomSection

public ISummaryZoomSection this[int index] { get; }

示例

以下示例演示如何通过索引获取摘要缩放部分元素:

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

另见