GoDiagram Web Reference
CreateBody Method
Example 

This method is called by the GoBoxNode constructor to provide the object in the middle of the rectangular port.
Syntax
'Declaration
 
Protected Overridable Function CreateBody() As GoObject
protected virtual GoObject CreateBody()

Return Value

By default this returns a multiline GoText with a white background.
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 CreateBody() {
  GoText t = new GoText();
  t.TransparentBackground = false;
  t.BackgroundColor = Color.White;
  t.Multiline = true;
  t.Selectable = false;
  return t;
}
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

GoBoxNode Class
GoBoxNode Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback