insert_section_zoom_frame method

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

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

must belong to this presentation and contain at least one slide.
imageIPPImageThe 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

ExceptionDescription
RuntimeError(Proxy error(ArgumentException))Thrown if the referenced section does not belong to the current presentation or contains no slides.

See Also