Draws a connector. Returns an instance of the Shape object that represents the created shape.
Applies to: Page object, Shape object
[[Set] shapeRet =] object.DrawConnector ( xBegin, yBegin, xEnd, yEnd ) |
The DrawConnector method syntax has these parts:
Part | Description |
object | Required. An expression that returns an instance of an object from the Applies to list. |
xBegin | Required. A Double value that represents the X-coordinate of the connector's begin point. |
yBegin | Required. A Double value that represents the Y-coordinate of the connector's begin point. |
xEnd | Required. A Double value that represents the X-coordinate of the connector's end point. |
yEnd | Required. A Double value that represents the Y-coordinate of the connector's end point. |
shapeRet | Optional. A Shape type variable. |
If object is a page or a group, the DrawConnector method creates the new connector inside this group / page, and then tries to connect the created connector. If the endpoints of the connector coincide with the default or user-defined connection points on any shapes, the connector is connected to these points. For shapes of other types the DrawConnector method doesn't build anything and always returns Nothing.
The coordinates of the points are specified in the coordinate system of the shape, group or page, object is associated with. The coordinates are measured in InternalUnits.
See Also |
DrawSmartConnector method |