AddSummaryZoomSection
SummaryZoomSectionCollection.AddSummaryZoomSection méthode
Crée un nouvel objet Section de Résumé Zoom et l’ajoute à la collection
public ISummaryZoomSection AddSummaryZoomSection(ISection section)
Paramètre | Type | Description |
---|---|---|
section | ISection | Section pour un nouvel élément Section de Résumé Zoom ISection |
Valeur de Retour
Élément ajouté ISummaryZoomFrame
Exceptions
exception | condition |
---|---|
ArgumentException | La section référencée n’appartient pas à la présentation actuelle ou ne contient aucune diapositive. |
Remarques
Si un élément pour cette section existe déjà dans la collection, l’élément existant est renvoyé.
Exemples
L’exemple démontre comment obtenir un élément Section de Résumé Zoom par index :
[C#]
using (Presentation pres = new Presentation("pres.pptx"))
{
ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame) pres.Slides[1].Shapes[0];
ISummaryZoomSectionCollection collection = zoomFrame.SummaryZoomCollection;
ISummaryZoomSection newZoomSection = collection.AddSummaryZoomSection(pres.Sections[3]);
}
Voir Aussi
- interface ISummaryZoomSection
- interface ISection
- class SummaryZoomSectionCollection
- namespace Aspose.Slides
- assembly Aspose.Slides