TextMultiline: TextMultilineType;
The TextMultiline property determines a label text wrap type.
The property can be set only for the category axis (X axis) for non-scatter chart types. This property is saved together with the chart.
Executing the example requires a form that contains the Button component with the Button1 identifier, the ChartBox component with the ChartBox1 component and the UiErAnalyzer component with the UiErAnalyzer1 identifier. Specify UiErAnalyzer1 as a data source for the ChartBox1 component. An express report with the configured chart on the active sheet is used as a data source for the ChartBox1 component.
The example is a handler of the OnClick event for the Button1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Chart: IChart;
ChartAxis: IChartAxis;
Begin
Chart := ChartBox1.Chart;
Chart.TickLabelSpacingAuto := True;
ChartAxis:=Chart.AxisX;
ChartAxis.TextMultiline := TextMultilineType.MultilineBySymbols;
End Sub Button1OnClick
After clicking the button wrapping by characters is applied to the category axis label text.
See also: