AddSummaryZoomSection()
Contents
[
Hide
]SummaryZoomSectionCollection::AddSummaryZoomSection(System::SharedPtr<ISection>) method
Creates new Summary Zoom Section object and add it to the collection
System::SharedPtr<ISummaryZoomSection> Aspose::Slides::SummaryZoomSectionCollection::AddSummaryZoomSection(System::SharedPtr<ISection> section) override
Arguments
| Parameter | Type | Description |
|---|---|---|
| section | System::SharedPtr<ISection> | Section for a new Summary Zoom Section element ISection |
Return Value
Added ISummaryZoomFrame element
Exceptions
| Exception | Description |
|---|---|
| System::ArgumentException | Referenced section does not belong to the current presentation or does not contains any slides. |
Remarks
If an element for this section already exists in the collection, the existing element is returned.
The example demonstrates getting Summary Zoom Section element by index:
auto pres = System::MakeObject<Presentation>(u"pres.pptx");
auto shapes = pres->get_Slides()->idx_get(1)->get_Shapes();
auto zoomFrame = System::ExplicitCast<ISummaryZoomFrame>(shapes->idx_get(0));
auto collection = zoomFrame->get_SummaryZoomCollection();
auto newZoomSection = collection->AddSummaryZoomSection(pres->get_Sections()->idx_get(3));
See Also
- Typedef SharedPtr
- Class ISummaryZoomSection
- Class ISection
- Class SummaryZoomSectionCollection
- Namespace Aspose::Slides
- Library Aspose.Slides