GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoToolLinking Class / PickPort Method
a PointF in document coordinates
In This Topic
    PickPort Method
    In This Topic
    Find a port in the document at the given point.
    Syntax
    public virtual IGoPort PickPort( 
       PointF dc
    )

    Parameters

    dc
    a PointF in document coordinates

    Return Value

    an IGoPort, or null if none was found at dc, or null if the object found is a child of the Link. The latter case is to avoid picking any port that is part of the link, such as when the link is a GoLabeledLink and the GoLabeledLink.FromLabel or the GoLabeledLink.ToLabel is a port or contains one.
    See Also