align_shapes method
Contents
[
Hide
]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):
...
| Parameter | Type | Description |
|---|---|---|
| alignment_type | ShapesAlignmentType | Determines which type of alignment will be applied. |
| align_to_slide | bool | If true, shapes will be aligned relative to the slide edges. |
| slide | IBaseSlide | Parent slide. |
Examples
Example:
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):
...
| Parameter | Type | Description |
|---|---|---|
| alignment_type | ShapesAlignmentType | Determines which type of alignment will be applied. |
| align_to_slide | bool | If true, shapes will be aligned relative to the slide edges. |
| group_shape | IGroupShape | Parent group shape. |
Examples
Example:
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):
...
| Parameter | Type | Description |
|---|---|---|
| alignment_type | ShapesAlignmentType | Determines which type of alignment will be applied. |
| align_to_slide | bool | If true, shapes will be aligned relative to the slide edges. |
| slide | IBaseSlide | Parent slide. |
| shape_indexes | List[int] | Indexes of shapes to be aligned. |
Examples
Example:
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):
...
| Parameter | Type | Description |
|---|---|---|
| alignment_type | ShapesAlignmentType | Determines which type of alignment will be applied. |
| align_to_slide | bool | If true, shapes will be aligned relative to the slide edges. |
| group_shape | IGroupShape | Parent group shape. |
| shape_indexes | List[int] | Indexes of shapes to be aligned. |
Examples
Example:
See Also
- class
IBaseSlide - class
IGroupShape - enumeration
ShapesAlignmentType - class
SlideUtil - module
aspose.slides.util - library
Aspose.Slides