AddConnector()

IShapeCollection::AddConnector(ShapeType, float, float, float, float) method

Creates a new Connector, tunes it from default template and adds it to the end of the collection.

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

Arguments

ParameterTypeDescription
shapeTypeShapeTypeThe ShapeType of shape.
xfloatThe X-coordinate for a left side of shape’s frame.
yfloatThe Y-coordinate for a top side of shape’s frame.
widthfloatThe width of shape’s frame.
heightfloatThe height of shape’s frame.

Return Value

The zero-based index of the created shape.

Created Connector object.

IShapeCollection::AddConnector(ShapeType, float, float, float, float, bool) method

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

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

Arguments

ParameterTypeDescription
shapeTypeShapeTypeThe ShapeType of shape.
xfloatThe X-coordinate for a left side of shape’s frame.
yfloatThe Y-coordinate for a top side of shape’s frame.
widthfloatThe width of shape’s frame.
heightfloatThe height of shape’s frame.
createFromTemplateboolIf 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

The zero-based index of the created shape.

Created Connector object.

See Also