GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoSimpleNode Class / CreateLabel Method
Example
In This Topic
    CreateLabel Method (GoSimpleNode)
    In This Topic
    Create and initialize a text label.
    Syntax
    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;
    }
    See Also