GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoTextNode Class / CreatePort Method
Example
In This Topic
    CreatePort Method (GoTextNode)
    In This Topic
    Create and initialize a port for a side of this node.
    Syntax
    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;
    }
    See Also