IChartAxis.TextAlignment

Fore Syntax

TextAlignment: ChartAxisTextAlignment;

Fore.NET Syntax

TextAlignment: Prognoz.Platform.Interop.Chart.ChartAxisTextAlignment;

Description

The TextAlignment property determines the text alignment method relative to the axis.

Comments

For the category axis the alignment can be applied only if:

By default value axes are aligned to the center and category axes are aligned closer to the axis.

Fore Example

To execute this example, create a form with a button named Button1 on the form, the ChartBox component and the UiChart component that is a data source.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ay: IChartAxis;
Begin
    ay:= UiChart1.Chart.AxisY;
    ay.TextAlignment:= ChartAxisTextAlignment.Near;
End Sub Button1OnClick;

Clicking Button1 moves the Y axis labels closer to the axis.

Fore.NET Example

To execute this example, create a form with a button named Button1 on the form, the ChartBoxNet component and the UiChartNet component that is a data source.

...

Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Chart;

Private Sub button1_Click( sender: System.Object; e: System.EventArgs );
    Var
        ay: IChartAxis;
    Begin
        ay:= UiChartNet1.ChartUi.Chart.AxisY;
        ay.TextAlignment:= ChartAxisTextAlignment.cataNear; 
    End Sub;

Clicking Button1 moves the Y axis labels closer to the axis.

See also:

IChartAxis