GoDiagram Web Reference
CreateTemporaryPort Method

an existing port that the temporary port should be like; this may be null
the PointF in document coordinates for where the temporary port should be
true if this is meant to be the IGoLink.ToPort instead of the IGoLink.FromPort
true if this is meant to be the EndPort instead of StartPort
This is responsible for creating a temporary port for the linking process.
Syntax
'Declaration
 
Protected Overridable Function CreateTemporaryPort( _
   ByVal port As IGoPort, _
   ByVal pnt As PointF, _
   ByVal forToPort As Boolean, _
   ByVal atEnd As Boolean _
) As IGoPort
protected virtual IGoPort CreateTemporaryPort( 
   IGoPort port,
   PointF pnt,
   bool forToPort,
   bool atEnd
)

Parameters

port
an existing port that the temporary port should be like; this may be null
pnt
the PointF in document coordinates for where the temporary port should be
forToPort
true if this is meant to be the IGoLink.ToPort instead of the IGoLink.FromPort
atEnd
true if this is meant to be the EndPort instead of StartPort

Return Value

a GoPort in the view at pnt
Remarks
This creates a new GoPort that is similar to the port. By default the temporary port's Style is GoPortStyle.None, so that it is not seen by the user. It is added to the default layer of the view.
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