GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoToolLinking Class / CreateTemporaryPort Method
an existing port that the temporary port should be like; this may be null
the PointF in document coordinates for where the temporary port should be
true if this is meant to be the IGoLink.ToPort instead of the IGoLink.FromPort
true if this is meant to be the EndPort instead of StartPort
In This Topic
    CreateTemporaryPort Method
    In This Topic
    This is responsible for creating a temporary port for the linking process.
    Syntax
    protected virtual IGoPort CreateTemporaryPort( 
       IGoPort port,
       PointF pnt,
       bool forToPort,
       bool atEnd
    )

    Parameters

    port
    an existing port that the temporary port should be like; this may be null
    pnt
    the PointF in document coordinates for where the temporary port should be
    forToPort
    true if this is meant to be the IGoLink.ToPort instead of the IGoLink.FromPort
    atEnd
    true if this is meant to be the EndPort instead of StartPort

    Return Value

    a GoPort in the view at pnt
    Remarks
    This creates a new GoPort that is similar to the port. By default the temporary port's Style is GoPortStyle.None, so that it is not seen by the user. It is added to the default layer of the view.
    See Also