[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IConnectorFormat.EndDisconnect

EndDisconnect Method

EndDisconnect()

Detaches the end of the specified connector from the shape it is attached to.

Use this method to remove the connection between a connector's end point and a shape while keeping the connector object available for further repositioning or reconnection.

Declaration
void EndDisconnect()
Sub EndDisconnect()
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);
connector.ConnectorFormat.EndDisconnect();