GoDiagram Web Reference
GetNearestIntersectionPoint Method (GoPort)

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
'Declaration
 
Public Overrides Function GetNearestIntersectionPoint( _
   ByVal p1 As PointF, _
   ByVal p2 As PointF, _
   ByRef result As PointF _
) As Boolean
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.
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

GoPort Class
GoPort Members
Base Implementation in GetNearestIntersectionPoint

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback