GoDiagram Web Reference
CreateBackground Method (GoTextNode)
Example 

Create and initialize an object that serves as the background for the text.
Syntax
'Declaration
 
Protected Overridable Function CreateBackground() As GoObject
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;
}
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

GoTextNode Class
GoTextNode Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback