IChartAxis.TextVisible

Fore Syntax

TextVisible: Boolean;

Fore.NET Syntax

TextVisible: System.Boolean;

Description

The TextVisible property determines whether axis labels are visible.

Comments

The TextVisible property is set to True by default, and axis labels are displayed. The property can be applied for all axes.

This property is saved together with the chart. If an object from the previous version is loaded, the TextAlignment, AutoTextSpacing, TextSpacing, TextVisible, and TextIsMultiline properties for the object are set to their default values.

Fore Example

Executing the example requires 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.TextVisible:= False;
End Sub Button1OnClick;

After clicking the Button1 button the Y axis labels become invisible on the chart.

Fore.NET Example

Executing the example requires 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.TextVisible:= False;
End Sub;

After clicking the Button1 button the Y axis labels become invisible on the chart.

See also:

IChartAxis