IndexOf

SummaryZoomSectionCollection.IndexOf method

Returns an index of the specified SummaryZoomSection object.

public int IndexOf(ISummaryZoomSection summaryZoomSection)
ParameterTypeDescription
summaryZoomSectionISummaryZoomSectionSummaryZoomSection object to find ISummaryZoomSection.

Return Value

Index of a SummaryZoomSection object or -1 if SummaryZoomSection object not from this collection.

Examples

The example demonstrates getting Summary Zoom Section element by index:

[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]);
    int idx = collection.IndexOf(selectedObject);
}

See Also