GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoSimpleNode Class / CreatePort Method
Example
In This Topic
    CreatePort Method (GoSimpleNode)
    In This Topic
    Create and initialize a port to be either on the left or on the right of this node.
    Syntax
    protected virtual GoPort CreatePort( 
       bool input
    )

    Parameters

    input

    Return Value

    Remarks
    You may want to override this to return null when you don't want a port on a particular side.
    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(bool input) {
      GoPort p = new GoPort();
      p.Size = new SizeF(6, 6);
      p.IsValidFrom = !input;
      p.IsValidTo = input;
      return p;
    }
    See Also