[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IConnectorFormat.BeginConnect

BeginConnect Method

BeginConnect(IShape, int)

Attaches the beginning of the specified connector to a specified shape.

Use this method to connect the starting 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 BeginConnect(IShape connectedShape, int connectionSite)
Sub BeginConnect(connectedShape As IShape, connectionSite As Integer)
Parameters
Type Name Description
IShape connectedShape

Required IShape object. The shape to attach the beginning 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, 20, 20, 100, 60);
IShape connector = worksheet.Shapes.AddConnector(ConnectorType.Straight, 70, 50, 180, 50);
connector.ConnectorFormat.BeginConnect(connectedShape, 1);