AddAutoShape()
Contents
[
Hide
]ShapeCollection::AddAutoShape(ShapeType, float, float, float, float) method
Creates a new auto shape with default formatting and adds it to the end of the shape collection.
System::SharedPtr<IAutoShape> Aspose::Slides::ShapeCollection::AddAutoShape(ShapeType shapeType, float x, float y, float width, float height) override
Arguments
Parameter | Type | Description |
---|---|---|
shapeType | ShapeType | The ShapeType of the auto shape to add. |
x | float | The x-coordinate of the shape\u2019s frame, in points. |
y | float | The y-coordinate of the shape\u2019s frame, in points. |
width | float | The width of the shape\u2019s frame, in points. |
height | float | The height of the shape\u2019s frame, in points. |
Return Value
The newly created IAutoShape.
ShapeCollection::AddAutoShape(ShapeType, float, float, float, float, bool) method
Creates a new auto shape and adds it to the end of the shape collection, optionally initializing it with default template formatting.
System::SharedPtr<IAutoShape> Aspose::Slides::ShapeCollection::AddAutoShape(ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate) override
Arguments
Parameter | Type | Description |
---|---|---|
shapeType | ShapeType | The ShapeType of the auto shape to add. |
x | float | The x-coordinate of the shape\u2019s frame, in points. |
y | float | The y-coordinate of the shape\u2019s frame, in points. |
width | float | The width of the shape\u2019s frame, in points. |
height | float | The height of the shape\u2019s frame, in points. |
createFromTemplate | 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. |
Return Value
The newly created IAutoShape.
See Also
- Enum ShapeType
- Typedef SharedPtr
- Class IAutoShape
- Class ShapeCollection
- Namespace Aspose::Slides
- Library Aspose.Slides