IndexOf
Méthode SummaryZoomSectionCollection.IndexOf
Renvoie un index de l’objet SummaryZoomSection spécifié.
public int IndexOf(ISummaryZoomSection summaryZoomSection)
Paramètre | Type | Description |
---|---|---|
summaryZoomSection | ISummaryZoomSection | Objet SummaryZoomSection à trouver ISummaryZoomSection . |
Valeur de Retour
Index d’un objet SummaryZoomSection ou -1 si l’objet SummaryZoomSection ne fait pas partie de cette collection.
Exemples
L’exemple démontre comment obtenir un élément Summary Zoom Section par 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);
}
Voir aussi
- interface ISummaryZoomSection
- classe SummaryZoomSectionCollection
- namespace Aspose.Slides
- assembly Aspose.Slides