TextVisible: Boolean;
TextVisible: System.Boolean;
The TextVisible property determines whether the axis labels are visible.
Be default the TextVisible property is set to True, and the axis labels are displayed. This property can be applied for all axes.
This property is saved 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.
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.TextVisible:= False;
End Sub Button1OnClick;
After clicking the Button1 button the Y axis labels become invisible on the chart.
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.TextVisible:= False;
End Sub;
After clicking the Button1 button the Y axis labels become invisible on the chart.
See also: