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

    Parameters

    pnt
    A PointF in document coordinates

    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 style strokes, this returns the index of the first of each set of points, e.g. 0, 3, 7, ....
    See Also