IRibbonLabel.MultiLine

Fore Syntax

MultiLine: Boolean;

Fore.NET Syntax

MultiLine: Boolean;

Description

The MultiLine property indicates whether the text is arranged in several lines.

Comments

If the property is set to True, text of control element is wrapped into several lines. Text is wrapped by space characters. Size of lines is defined by the component Ribbon automatically.

Example

Executing the example requires a form, a button named Button1 positioned on it and the Ribbon component named Ribbon1. A tab and a panel are created on the ribbon of the Ribbon1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    RPanel: IRibbonPanel;
    RLabel: IRibbonLabel;
Begin
    RPanel := Ribbon1.ActiveCategory.Panels.Item(0);
    RLabel := New RibbonLabel.Create;
    RPanel.Elements.Add(RLabel);
    RLabel.MultiLine := True;
    RLabel.Text := "This tab houses controls for ...";
End Sub Button1OnClick;

A static text is created on ribbon panel on clicking the button. This text contains information on tab purpose.

See also:

IRibbonLabel