GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoToolLinking Class / DoLinking Method
a PointF in document coordinates, the mouse position
In This Topic
    DoLinking Method
    In This Topic
    This method is called by DoMouseMove to find the nearest valid port and adjust the temporary link according to where the given point is.
    Syntax
    public virtual void DoLinking( 
       PointF dc
    )

    Parameters

    dc
    a PointF in document coordinates, the mouse position
    Remarks
    This calls PickNearestPort to find the closest valid port that we might link to, and passes the result to ImitatePort to get the EndPort to behave like that port. It also sets the GoObject.Bounds of the EndPort so that the temporary link appears to either follow the mouse pointer or connect to a nearby valid port.
    See Also