AddAutoShape()
Contents
[
Hide
]IShapeCollection::AddAutoShape(ShapeType, float, float, float, float) method
Creates a new AutoShape, tunes it from default template and adds it to the end of the collection.
virtual System::SharedPtr<IAutoShape> Aspose::Slides::IShapeCollection::AddAutoShape(ShapeType shapeType, float x, float y, float width, float height)=0
Arguments
Parameter | Type | Description |
---|---|---|
shapeType | 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. |
Return Value
Created AutoShape object.
IShapeCollection::AddAutoShape(ShapeType, float, float, float, float, bool) method
Creates a new AutoShape and adds it to the end of the collection.
virtual System::SharedPtr<IAutoShape> Aspose::Slides::IShapeCollection::AddAutoShape(ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate)=0
Arguments
Parameter | Type | Description |
---|---|---|
shapeType | 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. |
createFromTemplate | 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. |
Return Value
Created AutoShape object.
See Also
- Enum ShapeType
- Typedef SharedPtr
- Class IAutoShape
- Class IShapeCollection
- Namespace Aspose::Slides
- Library Aspose.Slides