AddSummaryZoomSection

SummaryZoomSectionCollection.AddSummaryZoomSection-Methode

Erstellt ein neues Summary Zoom Section-Objekt und fügt es der Sammlung hinzu

public ISummaryZoomSection AddSummaryZoomSection(ISection section)
ParameterTypBeschreibung
sectionISectionAbschnitt für ein neues Summary Zoom Section-Element ISection

Rückgabewert

Hinzugefügtes ISummaryZoomFrame Element

Ausnahmen

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

Anmerkungen

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

Beispiele

Das Beispiel zeigt, wie das Summary Zoom Section-Element nach Index abgerufen wird:

[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