Connector
Connector (line) shape. A connector is a linear shape having end-points that can be connected to other objects (but not to other connectors). A connector can be straight, have elbows, or can be curved.Properties
Read/write. The X-position of the begin point of this connector, in English Metric Units (as a |Length| object).
Read/write. The Y-position of the begin point of this connector, in English Metric Units (as a |Length| object).
Read/write. The X-position of the end point of this connector, in English Metric Units (as a |Length| object).
Read/write. The Y-position of the end point of this connector, in English Metric Units (as a |Length| object).
|LineFormat| instance for this connector. Provides access to line properties such as line color, width, and line style.
Member of
MSO_SHAPE_TYPE identifying the type of this shape. Unconditionally MSO_SHAPE_TYPE.LINE for a Connector object.Methods
Connect the beginning of this connector to a shape at a connection point.Parameters:
shape: The shape to connect tocxn_pt_idx(int): Index of the connection point on the shape (starting from 0)
Connect the ending of this connector to a shape at a connection point.Parameters:
shape: The shape to connect tocxn_pt_idx(int): Index of the connection point on the shape (starting from 0)
Helper method required by |LineFormat|. Returns the
<a:ln> element.Returns: CT_LinePropertiesExample: Creating and Connecting Lines
Example: Manual Position Control
Connection Point Reference
For rectangular shapes, connection points are typically numbered:- 0: Top center
- 1: Left center
- 2: Bottom center
- 3: Right center
This numbering is a convention and may vary for non-rectangular or custom shapes.