IsMultiline: Boolean;
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.
The default value of this property is False.
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.
See also: