insert_zoom_frame method
Contents
[
Hide
]insert_zoom_frame
Creates a new Zoom frame and inserts it into the shape collection at the specified index.
Returns
The newly created IZoomFrame.
def insert_zoom_frame(self, index, x, y, width, height, slide):
...
| Parameter | Type | Description |
|---|---|---|
| index | int | 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 | ISlide | The ISlide referenced by the Zoom frame. |
Examples
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):
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(ArgumentException)) | Thrown if the referenced slide does not belong to the current presentation. |
insert_zoom_frame
Creates a new Zoom frame with a predefined image and inserts it into the shape collection at the specified index.
Returns
The newly created IZoomFrame.
def insert_zoom_frame(self, index, x, y, width, height, slide, image):
...
| Parameter | Type | Description |
|---|---|---|
| index | int | 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 | ISlide | The ISlide referenced by the Zoom frame. |
| image | IPPImage | The image for the referenced slide IPPImage. |
Examples
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):
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(ArgumentException)) | Thrown if the referenced slide does not belong to the current presentation. |
See Also
- class
IPPImage - class
ISlide - class
IZoomFrame - class
ShapeCollection - module
aspose.slides - library
Aspose.Slides