[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IConnectorFormat.EndConnect

EndConnect Method

EndConnect(IShape, int)

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.

Declaration
void EndConnect(IShape connectedShape, int connectionSite)
Sub EndConnect(connectedShape As IShape, connectionSite As Integer)
Parameters
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 connectedShape.

Examples
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);