GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoToolLinking Class / PortPoint Method
an IGoPort whose distance is being considered
the point nearest which we are searching for a port
In This Topic
    PortPoint Method
    In This Topic
    Return a PointF representing the position of the port.
    Syntax
    public virtual PointF PortPoint( 
       IGoPort port,
       PointF dc
    )

    Parameters

    port
    an IGoPort whose distance is being considered
    dc
    the point nearest which we are searching for a port

    Return Value

    normally, port.GoObject.Center
    Remarks
    This is called by PickNearestPort for each port in the document. For large ports, if the port is a GoPort, this just returns the point dc if it is inside the port. If it is outside of the port, this uses the result of GetLinkPointFromPoint, which should be more accurate than the center of the port.
    See Also