insert_connector method

insert_connector

Creates a new Connector, tunes it from default template and inserts it to the collection at the specified index.

Returns

Created Connector object.

def insert_connector(self, index, shape_type, x, y, width, height):
    ...
ParameterTypeDescription
indexintThe zero-based index at which value should be inserted.
shape_typeShapeTypeAn 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.

insert_connector

Creates a new Connector and inserts it to the collection at the specified index.

Returns

Created Connector object.

def insert_connector(self, index, shape_type, x, y, width, height, create_from_template):
    ...
ParameterTypeDescription
indexintThe zero-based index at which value should be inserted.
shape_typeShapeTypeAn 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.
create_from_templateboolIf 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.

See Also