add_connector method
Contents
[
Hide
]add_connector
Creates a new connector shape with default template styling and adds it to the end of the shape collection.
Returns
The newly created IConnector
.
def add_connector(self, shape_type, x, y, width, height):
...
Parameter | Type | Description |
---|---|---|
shape_type | ShapeType | The ShapeType of the connector shape to add. |
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. |
Examples
The following example shows how to add a connector (a bent connector) between two shapes (an ellipse and rectangle) in PowerPoint Presentation.
add_connector
Creates a new connector shape and adds it to the end of the shape collection, optionally applying default template styling.
Returns
The newly created IConnector
.
def add_connector(self, shape_type, x, y, width, height, create_from_template):
...
Parameter | Type | Description |
---|---|---|
shape_type | ShapeType | The ShapeType of the connector shape to create. |
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