GoDiagram Web Reference
PortPoint Method

an IGoPort whose distance is being considered
the point nearest which we are searching for a port
Return a PointF representing the position of the port.
Syntax
'Declaration
 
Public Overridable Function PortPoint( _
   ByVal port As IGoPort, _
   ByVal dc As PointF _
) As PointF
public virtual PointF PortPoint( 
   IGoPort port,
   PointF dc
)

Parameters

port
an IGoPort whose distance is being considered
dc
the point nearest which we are searching for a port

Return Value

normally, port.GoObject.Center
Remarks
This is called by PickNearestPort for each port in the document. For large ports, if the port is a GoPort, this just returns the point dc if it is inside the port. If it is outside of the port, this uses the result of GetLinkPointFromPoint, which should be more accurate than the center of the port.
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

GoToolLinking Class
GoToolLinking Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback