GoDiagram Win Reference
CreateEndPort Method
Example 

Create a top or bottom port for this node.
Syntax
'Declaration
 
Public Overridable Function CreateEndPort( _
   ByVal top As Boolean _
) As GoObject
public virtual GoObject CreateEndPort( 
   bool top
)

Parameters

top
Example
If you override this method, you may want the definition to do some of the things that the standard definition does:
public virtual GoObject CreateEndPort(bool top) {
  GoPort p = new GoPort();
  p.Size = new SizeF(5, 3);
  p.Style = GoPortStyle.None;
  if (top) {
    p.FromSpot = MiddleTop;
    p.ToSpot = MiddleTop;
  } else {
    p.FromSpot = MiddleBottom;
    p.ToSpot = MiddleBottom;
  }
  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

GoMultiTextNode Class
GoMultiTextNode Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback