IndexOf
SummaryZoomSectionCollection.IndexOf Methode
Gibt einen Index des angegebenen SummaryZoomSection Objekts zurück.
public int IndexOf(ISummaryZoomSection summaryZoomSection)
Parameter | Typ | Beschreibung |
---|---|---|
summaryZoomSection | ISummaryZoomSection | Zu findendes SummaryZoomSection Objekt ISummaryZoomSection . |
Rückgabewert
Index eines SummaryZoomSection Objekts oder -1, wenn das SummaryZoomSection Objekt nicht aus dieser Sammlung stammt.
Beispiele
Das Beispiel demonstriert das Abrufen eines Summary Zoom Section Elements 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
- Schnittstelle ISummaryZoomSection
- Klasse SummaryZoomSectionCollection
- Namensraum Aspose.Slides
- Assembly Aspose.Slides