IndexOf

SummaryZoomSectionCollection.IndexOf method

Gibt einen Index des angegebenen SummaryZoomSection-Objekts zurück.

public int IndexOf(ISummaryZoomSection summaryZoomSection)
ParameterTypBeschreibung
summaryZoomSectionISummaryZoomSectionZu suchendes SummaryZoomSection-ObjektISummaryZoomSection.

Rückgabewert

Index eines SummaryZoomSection-Objekts oder -1, wenn das SummaryZoomSection-Objekt nicht aus dieser Sammlung stammt.

Beispiele

Das Beispiel zeigt das Abrufen des Elements Summary Zoom Section nach 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);
}

Siehe auch