insert_zoom_frame method

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):
    ...
ParameterTypeDescription
indexintThe zero-based index at which to insert the Zoom frame.
xfloatThe x-coordinate of the new Zoom frame, in points.
yfloatThe y-coordinate of the new Zoom frame, in points.
widthfloatThe width of the new Zoom frame, in points.
heightfloatThe height of the new Zoom frame, in points.
slideISlideThe 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

ExceptionDescription
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):
    ...
ParameterTypeDescription
indexintThe zero-based index at which to insert the Zoom frame.
xfloatThe x-coordinate of the new Zoom frame, in points.
yfloatThe y-coordinate of the new Zoom frame, in points.
widthfloatThe width of the new Zoom frame, in points.
heightfloatThe height of the new Zoom frame, in points.
slideISlideThe ISlide referenced by the Zoom frame.
imageIPPImageThe 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

ExceptionDescription
RuntimeError(Proxy error(ArgumentException))Thrown if the referenced slide does not belong to the current presentation.

See Also