IChartLegend.IsMultiline

Fore Syntax

IsMultiline: Boolean;

Fore.NET Syntax

IsMultiline: Boolean;

Description

The IsMultiline property determines whether legend text is wrapped. If this property is set to True, the legend text is multiline on condition that it cannot be placed into a single line. If the property is set to False, the text is positioned in a single line.

Comments

The default value of this property is False.

Fore Example

Executing the example requires a form with the following components on it: Button, ChartBox and UiChart, that have Button1, ChartBox1 and UiChart1 identifiers respectively.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
    ChartLegend: IChartLegend;
Begin
    Chart := ChartBox1.Chart;
    ChartLegend := Chart.Legend;
    ChartLegend.ColIntervalAuto := False;
    ChartLegend.ColInterval := 10;
    ChartLegend.ItemPlacement := ChartLegPlacement.CustomColumns;
    ChartLegend.ColCount := 2;
    ChartLegend.IsMultiline := True;
End Sub Button1OnClick;

After executing the example clicking the Button1 button changes the distance between chart legend columns, and the number of columns in the legend. Word wrapping is enabled in the legend.

Fore.NET Example

Executing the example requires a form with the following components placed on this form: Button, ChartBoxNet and UiChartNet, that have respective identifiers Button1, ChartBoxNet1 and UiChartNet1.

Imports Prognoz.Platform.Interop.Chart;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
    ChartLegend: IChartLegend;
Begin
    Chart := ChartBoxNet1.CtrlBox.Chart;
    ChartLegend := Chart.Legend;
    ChartLegend.ColIntervalAuto := False;
    ChartLegend.ColInterval := 10;
    ChartLegend.ItemPlacement := ChartLegPlacement.CustomColumns;
    ChartLegend.ColCount := 2;
    ChartLegend.IsMultiline := True;
End Sub;

After executing the example clicking the Button1 button changes the distance between chart legend columns, and the number of columns in the legend. Word wrapping is enabled in the legend.

See also:

IChartLegend