[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.ConnectionShape.EndConnect

EndConnect Method

EndConnect(Shape, int, bool)

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

Declaration
public void EndConnect(Shape connectedShape, int connectionSite, bool layout = true)
Public Sub EndConnect(connectedShape As Shape, connectionSite As Integer, Optional layout As Boolean = True)
Parameters
Type Name Description
Shape connectedShape

The shape to attach the end of the connector to. The specified Shape object must be in the same Shapes collection as the connector.

int connectionSite

A connection site on the shape specified by ConnectedShape. Must be an integer between 1 and 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.

bool layout

auto adjust layout.

Remarks

If there's already a connection between the end of the connector and another shape, that connection is broken. If the end of the connector isn't already positioned at the specified connecting site, this method moves the end of the connector to the connecting site and adjusts the size and position of the connector.

EndConnect(Shape, int, bool, bool)

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

Declaration
public void EndConnect(Shape connectedShape, int connectionSite, bool layout, bool updateParentBoundary)
Public Sub EndConnect(connectedShape As Shape, connectionSite As Integer, layout As Boolean, updateParentBoundary As Boolean)
Parameters
Type Name Description
Shape connectedShape

The shape to attach the end of the connector to. The specified Shape object must be in the same Shapes collection as the connector.

int connectionSite

A connection site on the shape specified by ConnectedShape. Must be an integer between 1 and 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.

bool layout

auto adjust layout.

bool updateParentBoundary

Update parent boundary.