InsertZoomFrame()
Contents
[
Hide
]IShapeCollection::InsertZoomFrame(int32_t, float, float, float, float, System::SharedPtr<ISlide>) method
Creates a new Zoom frame and inserts it into the shape collection at the specified index.
virtual System::SharedPtr<IZoomFrame> Aspose::Slides::IShapeCollection::InsertZoomFrame(int32_t index, float x, float y, float width, float height, System::SharedPtr<ISlide> slide)=0
Arguments
Parameter | Type | Description |
---|---|---|
index | int32_t | The zero-based index at which to insert the Zoom frame. |
x | float | The x-coordinate of the new Zoom frame, in points. |
y | float | The y-coordinate of the new Zoom frame, in points. |
width | float | The width of the new Zoom frame, in points. |
height | float | The height of the new Zoom frame, in points. |
slide | System::SharedPtr<ISlide> | The ISlide referenced by the Zoom frame. |
Return Value
The newly created IZoomFrame.
Remarks
This example demonstrates creation and inserting a Zoom object at the specified index of a collection (assume that there are at least two slides in the "Presentation.pptx" presentation):
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"Presentation.pptx");
System::SharedPtr<IZoomFrame> zoomFrame = pres->get_Slides()->idx_get(0)->get_Shapes()->InsertZoomFrame(2, 150.0f, 20.0f, 50.0f, 50.0f, pres->get_Slides()->idx_get(1));
IShapeCollection::InsertZoomFrame(int32_t, float, float, float, float, System::SharedPtr<ISlide>, System::SharedPtr<IPPImage>) method
Creates a new Zoom frame with a predefined image and inserts it into the shape collection at the specified index.
virtual System::SharedPtr<IZoomFrame> Aspose::Slides::IShapeCollection::InsertZoomFrame(int32_t index, float x, float y, float width, float height, System::SharedPtr<ISlide> slide, System::SharedPtr<IPPImage> image)=0
Arguments
Parameter | Type | Description |
---|---|---|
index | int32_t | The zero-based index at which to insert the Zoom frame. |
x | float | The x-coordinate of the new Zoom frame, in points. |
y | float | The y-coordinate of the new Zoom frame, in points. |
width | float | The width of the new Zoom frame, in points. |
height | float | The height of the new Zoom frame, in points. |
slide | System::SharedPtr<ISlide> | The ISlide referenced by the Zoom frame. |
image | System::SharedPtr<IPPImage> | The image for the referenced slide IPPImage. |
Return Value
The newly created IZoomFrame.
Remarks
This example demonstrates creation and inserting a Zoom object at the specified index of a collection (assume that there are at least two slides in the "Presentation.pptx" presentation):
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"Presentation.pptx");
System::SharedPtr<IPPImage> image = pres->get_Images()->AddImage(System::Drawing::Image::FromFile(u"image.png"));
System::SharedPtr<IZoomFrame> zoomFrame = pres->get_Slides()->idx_get(0)->get_Shapes()->InsertZoomFrame(2, 150.0f, 20.0f, 50.0f, 50.0f, pres->get_Slides()->idx_get(1), image);
See Also
- Typedef SharedPtr
- Class IZoomFrame
- Class ISlide
- Class IShapeCollection
- Class IPPImage
- Namespace Aspose::Slides
- Library Aspose.Slides