GoDiagram Web Reference
CreatePort Method (GoSimpleNode)
Example 

Create and initialize a port to be either on the left or on the right of this node.
Syntax
'Declaration
 
Protected Overridable Function CreatePort( _
   ByVal input As Boolean _
) As GoPort
protected virtual GoPort CreatePort( 
   bool input
)

Parameters

input

Return Value

Remarks
You may want to override this to return null when you don't want a port on a particular side.
Example
If you override this method, you may want the definition to do some of the things that the standard definition does:
protected virtual GoPort CreatePort(bool input) {
  GoPort p = new GoPort();
  p.Size = new SizeF(6, 6);
  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

GoSimpleNode Class
GoSimpleNode Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback