GoDiagram Web Reference
GetSegmentNearPoint Method (GoStroke)

A PointF in document coordinates
Return the index of the first point of a segment of this stroke that is close to a given point.
Syntax
'Declaration
 
Public Function GetSegmentNearPoint( _
   ByVal pnt As PointF _
) As Integer
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, ....
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoStroke Class
GoStroke Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback