ShapeCollectionInsertAutoShape Method (Int32, ShapeType, Single, Single, Single, Single, Boolean)

Creates a new AutoShape and inserts it to the collection at the specified index. Note: the type of the shape will be determined by the shapeType parameter.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.5.0.0 (21.5)
Syntax
public IAutoShape InsertAutoShape(
	int index,
	ShapeType shapeType,
	float x,
	float y,
	float width,
	float height,
	bool createFromTemplate
)

Parameters

index
Type: SystemInt32
The zero-based index at which value should be inserted.
shapeType
Type: Aspose.SlidesShapeType
An 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.
createFromTemplate
Type: SystemBoolean
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

Type: IAutoShape
Created AutoShape object.

Implements

IShapeCollectionInsertAutoShape(Int32, ShapeType, Single, Single, Single, Single, Boolean)
See Also