[]
Attaches the end of the specified connector to a specified shape.
Use this method to connect the ending point of a connector to a connection site on a shape. The specified shape must be in the same IShapes collection as the connector.
void EndConnect(IShape connectedShape, int connectionSite)
Sub EndConnect(connectedShape As IShape, connectionSite As Integer)
| Type | Name | Description |
|---|---|---|
| IShape | connectedShape | Required IShape object. The shape to attach the end of the connector to. The specified IShape object must be in the same collection as the connector. |
| int | connectionSite | Required Integer. A connection site on the shape specified by |
IShape connectedShape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 200, 20, 100, 60);
IShape connector = worksheet.Shapes.AddConnector(ConnectorType.Straight, 70, 50, 180, 50);
connector.ConnectorFormat.EndConnect(connectedShape, 1);