add_auto_shape method
Contents
[
Hide
]add_auto_shape
Creates a new AutoShape, tunes it from default template and adds it to the end of the collection.
Returns
Created AutoShape object.
def add_auto_shape(self, shape_type, x, y, width, height):
...
Parameter | Type | Description |
---|---|---|
shape_type | ShapeType | The ShapeType of shape. |
x | float | The X-coordinate for a left side of shape’s frame. |
y | float | The Y-coordinate for a top side of shape’s frame. |
width | float | The width of shape’s frame. |
height | float | The height of shape’s frame. |
add_auto_shape
Creates a new AutoShape and adds it to the end of the collection.
Returns
Created AutoShape object.
def add_auto_shape(self, shape_type, x, y, width, height, create_from_template):
...
Parameter | Type | Description |
---|---|---|
shape_type | ShapeType | The ShapeType of shape. |
x | float | The X-coordinate for a left side of shape’s frame. |
y | float | The Y-coordinate for a top side of shape’s frame. |
width | float | The width of shape’s frame. |
height | float | The height of shape’s frame. |
create_from_template | bool | If true then new shape will be tuned from default template. Not empty name, simple style, text centered will be assined to the new shape. If false then all values of the properties of the new shape will have default values. |
See Also
- class
IAutoShape
- class
IShapeCollection
- enumeration
ShapeType
- module
aspose.slides
- library
Aspose.Slides