InsertConnector()

IShapeCollection::InsertConnector(int32_t, ShapeType, float, float, float, float) method

Creates a new connector shape and inserts it into the shape collection at the specified index, applying default template styling.

virtual System::SharedPtr<IConnector> Aspose::Slides::IShapeCollection::InsertConnector(int32_t index, ShapeType shapeType, float x, float y, float width, float height)=0

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which to insert the connector shape.
shapeTypeShapeTypeThe ShapeType of the connector shape to insert.
xfloatThe x-coordinate of the connector\u2019s frame, in points.
yfloatThe y-coordinate of the connector\u2019s frame, in points.
widthfloatThe width of the connector\u2019s frame, in points.
heightfloatThe height of the connector\u2019s frame, in points.

Return Value

The newly created IConnector.

IShapeCollection::InsertConnector(int32_t, ShapeType, float, float, float, float, bool) method

Creates a new connector shape and inserts it into the shape collection at the specified index, optionally applying default template styling.

virtual System::SharedPtr<IConnector> Aspose::Slides::IShapeCollection::InsertConnector(int32_t index, ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate)=0

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which to insert the connector shape.
shapeTypeShapeTypeThe ShapeType of the connector shape to insert.
xfloatThe x-coordinate of the connector\u2019s frame, in points.
yfloatThe y-coordinate of the connector\u2019s frame, in points.
widthfloatThe width of the connector\u2019s frame, in points.
heightfloatThe height of the connector\u2019s frame, in points.
createFromTemplateboolTrue to apply default template styling (non-empty name, simple style); false to create the connector with default property values.

Return Value

The newly created IConnector.

See Also