GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoIconicNode Class / CreateLabel Method
Example
In This Topic
    CreateLabel Method (GoIconicNode)
    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 = this.DraggableLabel;
        l.Alignment = MiddleTop;
      }
      return l;
    }
    See Also