GoDiagram Win Reference
OnPortChanged Method (GoLink)

This IGoPort may be null for some events on the link.
This integer may include ChangedFromPort and ChangedToPort, stroke changes such as GoStroke.ChangedAllPoints and GoStroke.ChangedStyle, as well as some selected GoPort.Changed... subhints.
Let links get notifications of changes to either port or to the link itself.
Syntax
'Declaration
 
Public Overridable Sub OnPortChanged( _
   ByVal port As IGoPort, _
   ByVal subhint As Integer, _
   ByVal oldI As Integer, _
   ByVal oldVal As Object, _
   ByVal oldRect As RectangleF, _
   ByVal newI As Integer, _
   ByVal newVal As Object, _
   ByVal newRect As RectangleF _
) 
public virtual void OnPortChanged( 
   IGoPort port,
   int subhint,
   int oldI,
   object oldVal,
   RectangleF oldRect,
   int newI,
   object newVal,
   RectangleF newRect
)

Parameters

port
This IGoPort may be null for some events on the link.
subhint
This integer may include ChangedFromPort and ChangedToPort, stroke changes such as GoStroke.ChangedAllPoints and GoStroke.ChangedStyle, as well as some selected GoPort.Changed... subhints.
oldI
oldVal
oldRect
newI
newVal
newRect
Remarks
In general when this method is called, we call UpdateRoute. Most of the parameters are the same as for GoObject.Changed. This method does nothing when port is null.
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

GoLink Class
GoLink Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback