addAutoShape
Contents
[
Hide
]addAutoShape(int shapeType, float x, float y, float width, float height) function
Creates a new AutoShape, tunes it from default template and adds it to the end of the collection.
Parameters
Name | Type | Description |
---|---|---|
shapeType | int | 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. |
Result
addAutoShape(int shapeType, float x, float y, float width, float height, boolean createFromTemplate) function
Creates a new AutoShape and adds it to the end of the collection.
Parameters
Name | Type | Description |
---|---|---|
shapeType | int | 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. |
createFromTemplate | boolean | 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. |