IChartAxis.TextMultiline

Fore Syntax

TextMultiline: TextMultilineType;

Fore.NET Syntax

TextMultiline: Prognoz.Platform.Interop.Chart.TextMultilineType;

Description

The TextMultiline property determines a label text wrap type.

Comments

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.

Fore Example

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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Add a link to the Chart system assembly.

Imports Prognoz.Platform.Interop.Chart;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
    ChartAxis: IChartAxis;
Begin
    Chart := chartBoxNet1.CtrlBox.Chart;
    Chart.TickLabelSpacingAuto := True;
    ChartAxis := Chart.AxisX;
    ChartAxis.TextMultiline := TextMultilineType.tmMultilineBySymbols;
End Sub;

See also:

IChartAxis