GoDiagram Win Reference
CreateBackground Method (GoComment)
Example 

Create and initialize the background for the comment, which is normally a GoRectangle with a light yellow Brush and a drop-shadow effect.
Syntax
'Declaration
 
Protected Overridable Function CreateBackground() As GoObject
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;
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoComment Class
GoComment Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback