IndexOf
ISummaryZoomSectionCollection.IndexOf-Methode
Gibt einen Index des angegebenen SummaryZoomSection-Objekts zurück.
public int IndexOf(ISummaryZoomSection summaryZoomSection)
Parameter | Typ | Beschreibung |
---|---|---|
summaryZoomSection | ISummaryZoomSection | SummaryZoomSection-Objekt, das gefunden werden soll ISummaryZoomSection . |
Rückgabewert
Index eines SummaryZoomSection-Objekts oder -1, wenn das SummaryZoomSection-Objekt nicht aus dieser Sammlung stammt.
Beispiele
Das Beispiel zeigt, wie ein Summary Zoom Section-Element anhand des Index abgerufen wird:
[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
- Schnittstelle ISummaryZoomSectionCollection
- Namensraum Aspose.Slides
- Assembly Aspose.Slides