add_auto_shape method
Contents
[
Hide
]add_auto_shape
Creates a new auto shape with default formatting and adds it to the end of the shape collection.
Returns
The newly created IAutoShape
.
def add_auto_shape(self, shape_type, x, y, width, height):
...
Parameter | Type | Description |
---|---|---|
shape_type | ShapeType | The ShapeType of the auto shape to add. |
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. |
add_auto_shape
Creates a new auto shape and adds it to the end of the shape collection, optionally initializing it with default template formatting.
Returns
The newly created IAutoShape
.
def add_auto_shape(self, shape_type, x, y, width, height, create_from_template):
...
Parameter | Type | Description |
---|---|---|
shape_type | ShapeType | The ShapeType of the auto shape to add. |
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 (simple style, centered text, and non-empty name) to the new shape; false to create the shape with all properties set to their default values. |
See Also
- class
IAutoShape
- class
ShapeCollection
- enumeration
ShapeType
- module
aspose.slides
- library
Aspose.Slides