AddSummaryZoomSection

SummaryZoomSectionCollection.AddSummaryZoomSection method

Crée un nouvel objet Section de zoom récapitulatif et l’ajoute à la collection

public ISummaryZoomSection AddSummaryZoomSection(ISection section)
ParamètreTaperLa description
sectionISectionSection pour un nouvel élément Section de zoom récapitulatifISection

Return_Value

AjoutéeISummaryZoomFrame élément

Exceptions

exceptioncondition
ArgumentExceptionLa 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 retourné.

Exemples

L’exemple montre comment obtenir l’é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 newZoomSection = collection.AddSummaryZoomSection(pres.Sections[3]);
}

Voir également