GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoMultiTextNode Class / CreateEndPort Method
Example
In This Topic
    CreateEndPort Method
    In This Topic
    Create a top or bottom port for this node.
    Syntax
    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;
    }
    See Also