Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / ConnectionShape Class / BeginConnect Method / BeginConnect(Shape,Int32,Boolean) Method
The shape to attach the beginning of the connector to. The specified Shape object must be in the same Shapes collection as the connector.
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.


In This Topic
    BeginConnect(Shape,Int32,Boolean) Method
    In This Topic
    Attaches the beginning of the specified connector to a specified shape.
    Syntax
    'Declaration
     
    
    Public Overloads Sub BeginConnect( _
       ByVal connectedShape As Shape, _
       ByVal connectionSite As Integer, _
       Optional ByVal layout As Boolean _
    ) 
    'Usage
     
    
    Dim instance As ConnectionShape
    Dim connectedShape As Shape
    Dim connectionSite As Integer
    Dim layout As Boolean
     
    instance.BeginConnect(connectedShape, connectionSite, layout)
    public void BeginConnect( 
       Shape connectedShape,
       int connectionSite,
       bool layout
    )

    Parameters

    connectedShape
    The shape to attach the beginning of the connector to. The specified Shape object must be in the same Shapes collection as the connector.
    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.
    layout
    Remarks
    If there's already a connection between the beginning of the connector and another shape, that connection is broken. If the beginning of the connector isn't already positioned at the specified connecting site, this method moves the beginning of the connector to the connecting site and adjusts the size and position of the connector.
    See Also