GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoBasicNode Class / CreateLabel Method
Example
In This Topic
    CreateLabel Method (GoBasicNode)
    In This Topic
    Create and initialize a GoText as the label.
    Syntax
    protected virtual GoText CreateLabel( 
       string name
    )

    Parameters

    name

    Return Value

    a non-selectable, non-editable, non-rescaling GoText displaying name
    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) {
      // create a label with a transparent background that is centered
      GoText l = new GoText();
      l.Text = name;
      l.Selectable = false;
      l.Alignment = SpotOpposite(this.LabelSpot);
      return l;
    }
    See Also