GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoGeneralNode Class / CreatePort Method
true to mean the left side or the top side
Example
In This Topic
    CreatePort Method (GoGeneralNode)
    In This Topic
    Create and initialize a port that may go on either the left side or the right side.
    Syntax
    protected virtual GoGeneralNodePort CreatePort( 
       bool input
    )

    Parameters

    input
    true to mean the left side or the top side

    Return Value

    Remarks
    This method is called by MakePort to create a port, which it then associates with a port label. If the orientation is Vertical, the port will be either on the top side or on the bottom side of the node.
    Example
    If you override this method, you may want the definition to do some of the things that the standard definition does:
    protected virtual GoGeneralNodePort CreatePort(bool input) {
      GoGeneralNodePort p = new GoGeneralNodePort();
      p.LeftSide = input;
      p.IsValidFrom = !input;
      p.IsValidTo = input;
      return p;
    }
    See Also