IRibbonLabel.MultiLine

Syntax

MultiLine: Boolean;

Description

The MultiLine property determines whether text is arranged in several lines.

Comments

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

Example

Executing the example requires a form, a button named Button1 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;

Clicking the button creates a static text on the ribbon panel. This text contains information on tab purpose.

See also:

IRibbonLabel