GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPort Class / GetNearestIntersectionPoint Method
In This Topic
    GetNearestIntersectionPoint Method (GoPort)
    In This Topic
    If there is a PortObject and the Style is not GoPortStyle.GoPortStyle.Object, return the closest intersection point of the given line with that object.
    Syntax
    public override bool GetNearestIntersectionPoint( 
       PointF p1,
       PointF p2,
       out PointF result
    )

    Parameters

    p1
    p2
    result
    Remarks
    This supports the case where the PortObject is either a child of this port's node, or is the whole node itself. If there is no PortObject or if the Style is GoPortStyle.Object, we just return the default result which assumes the port is just a rectangle.
    See Also