GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoDrawing Class / GetSegmentNearPoint Method
A PointF in document coordinates
In This Topic
    GetSegmentNearPoint Method (GoDrawing)
    In This Topic
    Return the index of the first point of a segment of this shape that is close to a given point.
    Syntax
    public int GetSegmentNearPoint( 
       PointF pnt,
       float pickMargin
    )

    Parameters

    pnt
    A PointF in document coordinates
    pickMargin

    Return Value

    The zero-based index of the first point of a segment, or -1 if no segment is near pnt.
    Remarks
    This is sensitive to the PickMargin value. For Bezier segments, the index of the first of each set of points is returned.
    See Also