GoDiagram Win Reference
CreateLabel Method (GoSimpleNode)
Example 

Create and initialize a text label.
Syntax
'Declaration
 
Protected Overridable Function CreateLabel( _
   ByVal name As String _
) As GoText
protected virtual GoText CreateLabel( 
   string name
)

Parameters

name

Return Value

a non-editable, non-selectable, middle-aligned, non-rescaling GoText object
Example
If you override this method, you may want the definition to do some of the things that the standard definition does:
protected virtual GoText CreateLabel(String name) {
  GoText l = null;
  if (name != null) {
    l = new GoText();
    l.Text = name;
    l.Selectable = false;
    l.Alignment = Middle;
  }
  return l;
}
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

GoSimpleNode Class
GoSimpleNode Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback