AddSectionZoomFrame()
Contents
[
Hide
]ShapeCollection::AddSectionZoomFrame(float, float, float, float, System::SharedPtr<ISection>) method
Creates a new Section Zoom frame and adds it to the end of the shape collection.
System::SharedPtr<ISectionZoomFrame> Aspose::Slides::ShapeCollection::AddSectionZoomFrame(float x, float y, float width, float height, System::SharedPtr<ISection> section) override
Arguments
Parameter | Type | Description |
---|---|---|
x | float | The x-coordinate of the new Section Zoom frame, in points. |
y | float | The y-coordinate of the new Section Zoom frame, in points. |
width | float | The width of the new Section Zoom frame, in points. |
height | float | The height of the new Section Zoom frame, in points. |
section | System::SharedPtr<ISection> | The ISection referenced by the Section Zoom frame; must belong to this presentation and contain at least one slide. |
Return Value
The newly created ISectionZoomFrame.
Remarks
This example demonstrates adding a Section Zoom object to the end of a collection (assume that there are at least two sections in the "Presentation.pptx" presentation):
auto pres = System::MakeObject<Presentation>(u"Presentation.pptx");
auto shapes = pres->get_Slides()->idx_get(0)->get_Shapes();
auto zoomFrame = shapes->AddSectionZoomFrame(150.0f, 20.0f, 50.0f, 50.0f, pres->get_Sections()->idx_get(1));
ShapeCollection::AddSectionZoomFrame(float, float, float, float, System::SharedPtr<ISection>, System::SharedPtr<IPPImage>) method
Creates a new Section Zoom frame with a predefined image and adds it to the end of the shape collection.
System::SharedPtr<ISectionZoomFrame> Aspose::Slides::ShapeCollection::AddSectionZoomFrame(float x, float y, float width, float height, System::SharedPtr<ISection> section, System::SharedPtr<IPPImage> image) override
Arguments
Parameter | Type | Description |
---|---|---|
x | float | The x-coordinate of the new Section Zoom frame, in points. |
y | float | The y-coordinate of the new Section Zoom frame, in points. |
width | float | The width of the new Section Zoom frame, in points. |
height | float | The height of the new Section Zoom frame, in points. |
section | System::SharedPtr<ISection> | The ISection referenced by the Section Zoom frame; must belong to this presentation and contain at least one slide. |
image | System::SharedPtr<IPPImage> | The IPPImage to display within the Section Zoom frame. |
Return Value
The newly created ISectionZoomFrame.
Remarks
This example demonstrates adding a Section Zoom object to the end of a collection (assume that there are at least two sections in the "Presentation.pptx" presentation):
auto pres = System::MakeObject<Presentation>(u"Presentation.pptx");
auto shapes = pres->get_Slides()->idx_get(0)->get_Shapes();
auto image = pres->get_Images()->AddImage(Image::FromFile(u"image.png"));
auto zoomFrame = shapes->AddSectionZoomFrame(150.0f, 20.0f, 50.0f, 50.0f, pres->get_Sections()->idx_get(1), image);
See Also
- Typedef SharedPtr
- Class ISectionZoomFrame
- Class ISection
- Class ShapeCollection
- Class IPPImage
- Namespace Aspose::Slides
- Library Aspose.Slides