Parameters
- top
- text
- a null value causes no label to be allocated
Return Value
an editable, non-selectable, middle-aligned, non-rescaling GoText object
protected virtual GoText CreateLabel(bool top, String text) { GoText l = null; if (text != null) { l = new GoText(); l.Text = text; l.Selectable = false; if (this.Orientation == Orientation.Vertical) { if (top) l.Alignment = MiddleRight; else l.Alignment = MiddleLeft; } else { if (top) l.Alignment = MiddleBottom; else l.Alignment = MiddleTop; } l.Editable = true; this.Editable = true; } return l; }