AddSummaryZoomSection

SummaryZoomSectionCollection.AddSummaryZoomSection method

Erstellt ein neues Zusammenfassungs-Zoom-Abschnittsobjekt und fügt es der Sammlung hinzu

public ISummaryZoomSection AddSummaryZoomSection(ISection section)
ParameterTypBeschreibung
sectionISectionAbschnitt für ein neues Zusammenfassungs-Zoom-AbschnittselementISection

Rückgabewert

HinzugefügtISummaryZoomFrame Element

Ausnahmen

AusnahmeBedingung
ArgumentExceptionDer referenzierte Abschnitt gehört nicht zur aktuellen Präsentation oder enthält keine Folien.

Bemerkungen

Wenn ein Element für diesen Abschnitt bereits in der Sammlung vorhanden ist, wird das vorhandene Element zurückgegeben.

Beispiele

Das Beispiel zeigt das Abrufen des Elements Summary Zoom Section nach 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]);
}

Siehe auch