insert_section_zoom_frame method
Contents
[
Hide
]insert_section_zoom_frame
Creates a new Section Zoom frame and inserts it into to the shape collection at the specified index.
Returns
The newly created ISectionZoomFrame.
def insert_section_zoom_frame(self, index, x, y, width, height, section):
...
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index at which to insert the Section Zoom frame. |
| 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 | ISection | The ISection referenced by the Section Zoom frame;must belong to this presentation and contain at least one slide. |
Examples
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):
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(ArgumentException)) | Thrown if the referenced section does not belong to the current presentation or contains no slides. |
insert_section_zoom_frame
Creates a new Section Zoom frame with a predefined image and inserts it into to the shape collection at the specified index.
Returns
The newly created ISectionZoomFrame.
def insert_section_zoom_frame(self, index, x, y, width, height, section, image):
...
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index at which to insert the Section Zoom frame. |
| 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 | ISection | The ISection referenced by the Section Zoom frame;must belong to this presentation and contain at least one slide. |
| image | IPPImage | The image to display within the Section Zoom frame. |
Examples
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):
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(ArgumentException)) | Thrown if the referenced section does not belong to the current presentation or contains no slides. |
See Also
- class
IPPImage - class
ISection - class
ISectionZoomFrame - class
IShapeCollection - module
aspose.slides - library
Aspose.Slides