AddSummaryZoomSection

ISummaryZoomSectionCollection.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

Anmerkungen

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

Beispiel

Das Beispiel demonstriert, wie man ein Summary Zoom Section-Element anhand des Index erhält:

[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