GoDiagram Win Reference
CreatePort Method (GoGeneralNode)
Example 

true to mean the left side or the top side
Create and initialize a port that may go on either the left side or the right side.
Syntax
'Declaration
 
Protected Overridable Function CreatePort( _
   ByVal input As Boolean _
) As GoGeneralNodePort
protected virtual GoGeneralNodePort CreatePort( 
   bool input
)

Parameters

input
true to mean the left side or the top side

Return Value

Remarks
This method is called by MakePort to create a port, which it then associates with a port label. If the orientation is Vertical, the port will be either on the top side or on the bottom side of the node.
Example
If you override this method, you may want the definition to do some of the things that the standard definition does:
protected virtual GoGeneralNodePort CreatePort(bool input) {
  GoGeneralNodePort p = new GoGeneralNodePort();
  p.LeftSide = input;
  p.IsValidFrom = !input;
  p.IsValidTo = input;
  return p;
}
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

GoGeneralNode Class
GoGeneralNode Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback