WidgetLabel Class
This class creates a text label.
The following sample demonstrates the usage of the WidgetLabel class:
WidgetLabel Class
This class inherits from WidgetMembers
WidgetLabel (Gui gui, string text = 0)
Constructor. Creates a new text label.Arguments
- Gui gui - GUI, to which the new label will belong.
- string text = 0 - Text of the label. This is an optional parameter.
int getTextAlign ()
Returns alignment of the label.Return value
One of the following variables:string getText ()
Returns the text of the label.Return value
Label text.void setTextAlign (int align)
Sets alignment of the label.Arguments
- int align - One of the following variables:
void setText (string text)
Sets a text for the label.Arguments
- string text - Label text.
Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)