Index | Collapse All Expand All

Label Class
Members Examples See Also

Beta Documentation - Subject to change.
A simple label for displaying text.

# Remarks

This class extends a control for the purpose of displaying some text. It contains simple methods for describing how to layout the text and display it.

# Examples

This example displays some text in a label contained inside a window.

Displaying Text | Copy Code
--- | ---
          import "Turbine.UI.Lotro";

          window = Turbine.UI.Lotro.Window();
          window:SetPosition( 200, 200 );
          window:SetSize( 200, 200 );
          window:SetText( "Test" );
          window:SetVisible( true );

          label = Turbine.UI.Label();
          label:SetParent( window );
          label:SetPosition( 40, 60 );
          label:SetSize( 120, 80 );
          label:SetBackColor( Turbine.UI.Color( 0.2, 0.2, 1 ) );
          label:SetText( "Hello world!" );
          label:SetTextAlignment( Turbine.UI.ContentAlignment.MiddleCenter );

# Inheritance Hierarchy

Turbine.Object
Turbine.UI.Control
Turbine.UI.ScrollableControl
Turbine.UI.Label
Turbine.UI.Button
Turbine.UI.CheckBox
Turbine.UI.TextBox

# See Also

- Turbine.UI