GoDiagram Web Reference
CreatePort Method (GoTextNode)
Example 

Create and initialize a port for a side of this node.
Syntax
'Declaration
 
Protected Overridable Function CreatePort( _
   ByVal spot As Integer _
) As GoPort
protected virtual GoPort CreatePort( 
   int spot
)

Parameters

spot

Return Value

a small GoPort whose Style is GoPortStyle.None supporting both source and destination links
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(int spot) {
  GoPort p = new GoPort();
  p.Style = GoPortStyle.None;
  p.Size = new SizeF(4, 4);
  p.FromSpot = spot;
  p.ToSpot = spot;
  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

GoTextNode Class
GoTextNode Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback