InsertSectionZoomFrame()
Contents
[
Hide
]IShapeCollection::InsertSectionZoomFrame(int32_t, float, float, float, float, System::SharedPtr<ISection>) method
Creates a new Section Zoom object and inserts into to a collection at the specified index.
virtual System::SharedPtr<ISectionZoomFrame> Aspose::Slides::IShapeCollection::InsertSectionZoomFrame(int32_t index, float x, float y, float width, float height, System::SharedPtr<ISection> section)=0
Arguments
Parameter | Type | Description |
---|---|---|
index | int32_t | The zero-based index at which Section Zoom frame should be inserted. |
x | float | X coordinate of a new Section Zoom frame float. |
y | float | Y coordinate of a new Section Zoom frame float. |
width | float | Width of a new Section Zoom frame float. |
height | float | Height of a new Section Zoom frame float. |
section | System::SharedPtr<ISection> | The slide object referenced by the Section Zoom frame ISection. |
Return Value
Created Section Zoom object ISectionZoomFrame.
Remarks
This example demonstrates the creation and inserting a Section Zoom object at the specified index 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->InsertSectionZoomFrame(2, 150.0f, 20.0f, 50.0f, 50.0f, pres->get_Sections()->idx_get(1));
IShapeCollection::InsertSectionZoomFrame(int32_t, float, float, float, float, System::SharedPtr<ISection>, System::SharedPtr<IPPImage>) method
Creates a new Section Zoom object and inserts it to a collection at the specified index.
virtual System::SharedPtr<ISectionZoomFrame> Aspose::Slides::IShapeCollection::InsertSectionZoomFrame(int32_t index, float x, float y, float width, float height, System::SharedPtr<ISection> section, System::SharedPtr<IPPImage> image)=0
Arguments
Parameter | Type | Description |
---|---|---|
index | int32_t | The zero-based index at which Section Zoom frame should be inserted. |
x | float | X coordinate of a new Section Zoom frame float. |
y | float | Y coordinate of a new Section Zoom frame float. |
width | float | Width of a new Section Zoom frame float. |
height | float | Height of a new Section Zoom frame float. |
section | System::SharedPtr<ISection> | The slide object referenced by the Section Zoom frame ISection. |
image | System::SharedPtr<IPPImage> | The image for the referenced slide IPPImage |
Return Value
Created Section Zoom object ISectionZoomFrame.
Remarks
This example demonstrates the creation and inserting a Section Zoom object at the specified index 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->InsertSectionZoomFrame(2, 150.0f, 20.0f, 50.0f, 50.0f, pres->get_Sections()->idx_get(1), image);
See Also
- Typedef SharedPtr
- Class ISectionZoomFrame
- Class ISection
- Class IShapeCollection
- Class IPPImage
- Namespace Aspose::Slides
- Library Aspose.Slides