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 - 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: 03.07.2017
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter