GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoTextNode Class / CreateBackground Method
Example
In This Topic
    CreateBackground Method (GoTextNode)
    In This Topic
    Create and initialize an object that serves as the background for the text.
    Syntax
    protected virtual GoObject CreateBackground()

    Return Value

    a GoRectangle with a light gray Brush
    Remarks
    You may wish to override this to use a different kind of background object, such as GoRoundedRectangle.
    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 CreateBackground() {
      GoRectangle r = new GoRectangle();
      r.Selectable = false;
      r.Resizable = false;
      r.Reshapable = false;
      r.Brush = Brushes.LightGray;
      return r;
    }
    See Also