IChartAxis.DisplayAxisLine

Syntax

DisplayAxisLine: Boolean;

DisplayAxisLine: Boolean;

Description

The DisplayAxisLine property determines whether chart axis lines are displayed.

Comments

Available values:

Example

To execute the example, on the form place the Button, ChartBox and UiErAnalyzer components (in the Fore.NET example use the ChartBoxNet and UiErAnalyzerNet components) named BUTTON1, BUTTON2, CHARTBOX1/CHARTBOXNET1 and UIERANALYZER1/UIERANALYZERNET1 respectively. In the ChartBox/ChartBoxNet component set the Source/UiSource property to UiErAnalyzer1/UiErAnalyzerNet1. In the Button1 component set the Text property to Hide Line, in the Button2 component set the Show Line value. In the UiErAnalyzer/UiErAnalyzerNet component set the Active component to True. There should be an express report specified as the Object property for the UiErAnalyzer/UiErAnalyzerNet component.

Add links to the Chart, Drawing, Express, Forms, Forms.NET (for Fore.NET example) system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
    ChartAxisX: IChartAxis;
Begin
    Chart := ChartBox1.Chart;
    ChartAxisX := Chart.AxisX;
    ChartAxisX.DisplayAxisLine := 
False;
End Sub Button1OnClick;

Sub Button2OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
    ChartAxisX: IChartAxis;
Begin
    Chart := ChartBox1.Chart;
    ChartAxisX := Chart.AxisX;
    ChartAxisX.DisplayAxisLine := 
True;
    ChartAxisX.AxisPen := 
New GxPen.CreateSolid(GxColor.FromName("Red"), 2.0);
End Sub Button2OnClick;

Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Drawing;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
    ChartAxisX: IChartAxis;
Begin
    Chart := ChartBoxNet1.CtrlBox.Chart;
    ChartAxisX := Chart.AxisX;
    ChartAxisX.DisplayAxisLine := 
False;    
End Sub;

Private Sub button2_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
    ChartAxisX: IChartAxis;
    AxisPen: GxPen = 
New GxPenClass();
    GxColorCls: GxColorClass = 
New GxColorClass();
Begin
    Chart := ChartBoxNet1.CtrlBox.Chart;
    ChartAxisX := Chart.AxisX;
    ChartAxisX.DisplayAxisLine := 
True;
    AxisPen.CreateSolid(GxColorCls.FromName(
"Red"), 2.0);
    ChartAxisX.AxisPen := AxisPen;
End Sub;

Clicking the Show Line button displays a line on the X axis:

Clicking the Hide Line button hides a line on the X axis:

See also:

IChartAxis