IShapeCollectionAddConnector Method (ShapeType, Single, Single, Single, Single, Boolean)

Creates a new Connector and adds it to the end of the collection.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
IConnector AddConnector(
	ShapeType shapeType,
	float x,
	float y,
	float width,
	float height,
	bool createFromTemplate
)

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.
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: IConnector
The zero-based index of the created shape.

Return Value

Type: IConnector
Created Connector object.
See Also