GoDiagram Web Reference
DoNoRelink Method

might be null
might be null
This is called by DoMouseUp or DoCancelMouse when an existing link was purposely not reconnected by the user to any port.
Syntax
'Declaration
 
Public Overridable Sub DoNoRelink( _
   ByVal oldlink As IGoLink, _
   ByVal fromPort As IGoPort, _
   ByVal toPort As IGoPort _
) 
public virtual void DoNoRelink( 
   IGoLink oldlink,
   IGoPort fromPort,
   IGoPort toPort
)

Parameters

oldlink
fromPort
might be null
toPort
might be null
Remarks

If the oldlink is Movable, this is considered a relinking to no port, rather than a deletion of the link.

Because this case (when Movable is false) effectively results in an object being removed from the document, this method calls GoView.RaiseSelectionDeleting and GoView.RaiseSelectionDeleted. If the GoView.RaiseSelectionDeleting event results in a cancellation, this calls DoCancelMouse instead of removing the link. This method does not remove the link if CanDelete is false.

This method is responsible for setting TransactionResult, so that Stop's call to StopTransaction will properly call GoView.FinishTransaction or GoView.AbortTransaction, as desired.

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