GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoComment Class / CreateBackground Method
Example
In This Topic
    CreateBackground Method (GoComment)
    In This Topic
    Create and initialize the background for the comment, which is normally a GoRectangle with a light yellow Brush and a drop-shadow effect.
    Syntax
    protected virtual GoObject CreateBackground()
    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.Shadowed = true;
      r.Selectable = false;
      r.Pen = GoShape.Pens_LightGray;
      r.Brush = GoShape.Brushes_LemonChiffon;
      return r;
    }
    See Also