GoDiagram Web Reference
GetSegmentNearPoint Method (GoDrawing)

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

GoDrawing Class
GoDrawing Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback