SlideUtil class

SlideUtil class

Offer methods which help to search shapes and text in a presentation.

The SlideUtil type exposes the following members:

Methods

MethodDescription
find_shape(pres, alt_text)Find shape by alternative text in a PPTX presentation.
find_shape(slide, alt_text)Find shape by alternative text on a slide in a PPTX presentation.
align_shapes(alignment_type, align_to_slide, slide)Changes the placement of all shapes on the slide. Aligns shapes to the margins or the edge of the slide
or align them relative to each other.
align_shapes(alignment_type, align_to_slide, slide, shape_indexes)Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide
or align them relative to each other.
align_shapes(alignment_type, align_to_slide, group_shape)Changes the placement of all shapes within group shape. Aligns shapes to the margins or the edge of the slide
or align them relative to each other.
align_shapes(alignment_type, align_to_slide, group_shape, shape_indexes)Changes the placement of selected shapes within group shape. Aligns shapes to the margins or the edge of the slide
or align them relative to each other.
find_shapes_by_placeholder_type(slide, placeholder_type)Searches for all shapes on the specified slide that match the given placeholder type.
find_and_replace_text(presentation, with_masters, find, replace, format)Finds and replaces text in presentation with given format
get_all_text_boxes(slide)Returns all text frames on a slide in a PPTX presentation.
get_text_boxes_contains_text(slide, text, check_placeholder_text)Returns all text frames on the specified slide that contain the given text.
get_all_text_frames(pres, with_masters)Returns all text frames in a PPTX presentation.
to_save_format(format)Converts a source file format to the corresponding SaveFormat.

See Also