GoDiagram Web Reference
CreateLink Method

if null, this method will return null
if null, this method will return null
The GoToolLinking class calls this method to create a new link between ports.
Syntax
'Declaration
 
Public Overridable Function CreateLink( _
   ByVal fromPort As IGoPort, _
   ByVal toPort As IGoPort _
) As IGoLink
public virtual IGoLink CreateLink( 
   IGoPort fromPort,
   IGoPort toPort
)

Parameters

fromPort
if null, this method will return null
toPort
if null, this method will return null
Remarks
By default this method creates a copy of the NewLinkPrototype object, assigns the IGoLink.FromPort and IGoLink.ToPort properties. How it adds the new link to this view's document depends on the ports. If both of the ports belong to GoSubGraphBases, it adds the new link to the common parent GoSubGraphBase for both ports. Otherwise it adds the new link to the document's GoDocument.LinksLayer. If the new link is IGoRoutable, its IGoRoutable.UpdateRoute method is called. The LinkCreated event is not raised here; it is raised by DoNewLink.
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

GoView Class
GoView Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback