align_shapes method

align_shapes

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.

@staticmethod
def align_shapes(alignment_type, align_to_slide, slide):
    ...
ParameterTypeDescription
alignment_typeShapesAlignmentTypeDetermines which type of alignment will be applied.
align_to_slideboolIf true, shapes will be aligned relative to the slide edges.
slideIBaseSlideParent slide.

align_shapes

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.

@staticmethod
def align_shapes(alignment_type, align_to_slide, group_shape):
    ...
ParameterTypeDescription
alignment_typeShapesAlignmentTypeDetermines which type of alignment will be applied.
align_to_slideboolIf true, shapes will be aligned relative to the slide edges.
group_shapeIGroupShapeParent group shape.

align_shapes

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.

@staticmethod
def align_shapes(alignment_type, align_to_slide, slide, shape_indexes):
    ...
ParameterTypeDescription
alignment_typeShapesAlignmentTypeDetermines which type of alignment will be applied.
align_to_slideboolIf true, shapes will be aligned relative to the slide edges.
slideIBaseSlideParent slide.
shape_indexesList[int]Indexes of shapes to be aligned.

align_shapes

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.

@staticmethod
def align_shapes(alignment_type, align_to_slide, group_shape, shape_indexes):
    ...
ParameterTypeDescription
alignment_typeShapesAlignmentTypeDetermines which type of alignment will be applied.
align_to_slideboolIf true, shapes will be aligned relative to the slide edges.
group_shapeIGroupShapeParent group shape.
shape_indexesList[int]Indexes of shapes to be aligned.

See Also