insert_connector method
Contents
[
Hide
]insert_connector
Creates a new connector shape and inserts it into the shape collection at the specified index, applying default template styling.
Returns
The newly created IConnector
.
def insert_connector(self, index, shape_type, x, y, width, height):
...
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index at which to insert the connector shape. |
shape_type | ShapeType | The ShapeType of the connector shape to insert. |
x | float | The x-coordinate of the connector’s frame, in points. |
y | float | The y-coordinate of the connector’s frame, in points. |
width | float | The width of the connector’s frame, in points. |
height | float | The height of the connector’s frame, in points. |
insert_connector
Creates a new connector shape and inserts it into the shape collection at the specified index, optionally applying default template styling.
Returns
The newly created IConnector
.
def insert_connector(self, index, shape_type, x, y, width, height, create_from_template):
...
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index at which to insert the connector shape. |
shape_type | ShapeType | The ShapeType of the connector shape to insert. |
x | float | The x-coordinate of the connector’s frame, in points. |
y | float | The y-coordinate of the connector’s frame, in points. |
width | float | The width of the connector’s frame, in points. |
height | float | The height of the connector’s frame, in points. |
create_from_template | bool | True to apply default template styling (non-empty name, simple style); false to create the connector with default property values. |
See Also
- class
IConnector
- class
ShapeCollection
- enumeration
ShapeType
- module
aspose.slides
- library
Aspose.Slides