AddSummaryZoomSection

ISummaryZoomSectionCollection.AddSummaryZoomSection method

Creates new Summary Zoom Section object and add it to the collection

public ISummaryZoomSection AddSummaryZoomSection(ISection section)
ParameterTypeDescription
sectionISectionSection for a new Summary Zoom Section element ISection

Return Value

Added ISummaryZoomFrame element

Remarks

If an element for this section already exists in the collection, the existing element is returned.

Examples

The example demonstrates getting Summary Zoom Section element by 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]);
}

See Also