Index | Collapse All Expand All

SetMultiline Method
Label Class Members Examples See Also

Beta Documentation - Subject to change.
Sets if the label should display on multiple lines.

# Syntax

Lua
    function Label:SetMultiline(value);

#### Parameters

value
  Type: boolean
  True to make the label multiline.

# Remarks

When enabled, the text of a label will wrap at the edge of the labels horizontal boundaries.There are some limitations when text is not multiline. When the text is too width to fit in the label's area, the content alignment will only honor the vertical layout. The horizontal alignment will be left.

# Examples

Turn off Multiline | 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:SetMultiline( false );
            label:SetPosition( 40, 60 );
            label:SetSize( 120, 80 );
            label:SetBackColor( Turbine.UI.Color( 0.2, 0.2, 1 ) );
            label:SetText( "This text will not wrap" );
            label:SetTextAlignment( Turbine.UI.ContentAlignment.TopLeft );

# See Also

- Label
- Turbine.UI