IShapeCollectionAddAutoShape Method (ShapeType, Single, Single, Single, Single) |
Creates a new AutoShape, tunes it from default template and adds it to the end of the collection.
Namespace:
Aspose.Slides
Assembly:
Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
SyntaxIAutoShape AddAutoShape(
ShapeType shapeType,
float x,
float y,
float width,
float height
)
Function AddAutoShape (
shapeType As ShapeType,
x As Single,
y As Single,
width As Single,
height As Single
) As IAutoShape
IAutoShape^ AddAutoShape(
ShapeType shapeType,
float x,
float y,
float width,
float height
)
abstract AddAutoShape :
shapeType : ShapeType *
x : float32 *
y : float32 *
width : float32 *
height : float32 -> IAutoShape
Parameters
- shapeType
- Type: Aspose.SlidesShapeType
The ShapeType of shape. - x
- Type: SystemSingle
The X-coordinate for a left side of shape's frame. - y
- Type: SystemSingle
The Y-coordinate for a top side of shape's frame. - width
- Type: SystemSingle
The width of shape's frame. - height
- Type: SystemSingle
The height of shape's frame.
Return Value
Type:
IAutoShapeCreated AutoShape object.
See Also