GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoButton Class / CreateBackground Method
Example
In This Topic
    CreateBackground Method (GoButton)
    In This Topic
    Make the background rectangle for the button.
    Syntax
    protected virtual GoObject CreateBackground()

    Return Value

    By default this returns a GoRectangle
    Remarks
    This is called by the constructor.
    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.Pen = null;
      r.Brush = GoShape.SystemBrushes_Control;
      return r;
    }
    See Also