In This Topic
Attaches the beginning of the specified connector to a specified shape.
Syntax
'Declaration
Sub BeginConnect( _
ByVal As IShape, _
ByVal As Integer _
)
'Usage
Dim instance As IConnectorFormat
Dim connectedShape As IShape
Dim connectionSite As Integer
instance.BeginConnect(connectedShape, connectionSite)
void BeginConnect(
IShape ,
int
)
Parameters
- connectedShape
- The shape to attach the beginning of the connector to. The specified Shape object must be in the same Shapes collection as the connector.
- connectionSite
- A connection site on the shape specified by ConnectedShape. Must be a non-negative integer less the integer returned by the ConnectionSiteCount property of the specified shape. If you want the connector to automatically find the shortest path between the two shapes it connects, specify any valid integer for this argument and then use the RerouteConnections method after the connector is attached to shapes at both ends.
See Also