insert_auto_shape method
Contents
[
Hide
]insert_auto_shape
Creates a new auto shape and inserts it into the shape collection at the specified index, applying default template formatting.
Returns
The newly created IAutoShape
.
def insert_auto_shape(self, index, shape_type, x, y, width, height):
...
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index at which to insert the new auto shape. |
shape_type | ShapeType | The ShapeType of the auto shape to insert. |
x | float | The x-coordinate of the shape’s frame, in points. |
y | float | The y-coordinate of the shape’s frame, in points. |
width | float | The width of the shape’s frame, in points. |
height | float | The height of the shape’s frame, in points. |
insert_auto_shape
Creates a new auto shape and inserts it into the shape collection at the specified index, optionally initializing it with default template styling.
Returns
The newly created IAutoShape
.
def insert_auto_shape(self, index, shape_type, x, y, width, height, create_from_template):
...
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index at which to insert the auto shape. |
shape_type | ShapeType | The ShapeType of the auto shape to insert. |
x | float | The x-coordinate of the shape’s frame, in points. |
y | float | The y-coordinate of the shape’s frame, in points. |
width | float | The width of the shape’s frame, in points. |
height | float | The height of the shape’s frame, in points. |
create_from_template | bool | True to apply default template styling (including a non-empty name, simple style, and centered text); false to create the shape with all properties set to their defaults. |
See Also
- class
IAutoShape
- class
ShapeCollection
- enumeration
ShapeType
- module
aspose.slides
- library
Aspose.Slides