GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoBoxNode Class / CreateBody Method
Example
In This Topic
    CreateBody Method
    In This Topic
    This method is called by the GoBoxNode constructor to provide the object in the middle of the rectangular port.
    Syntax
    protected virtual GoObject CreateBody()

    Return Value

    By default this returns a multiline GoText with a white background.
    Example
    If you override this method, you may want the definition to do some of the things that the standard definition does:
    protected virtual GoObject CreateBody() {
      GoText t = new GoText();
      t.TransparentBackground = false;
      t.BackgroundColor = Color.White;
      t.Multiline = true;
      t.Selectable = false;
      return t;
    }
    See Also