IChartAxis.AxisPen

Syntax

AxisPen: IGxPen;

Description

The AxisPen property sets parameters of pen to draw axis line.

NOTE. The default value of AxisPen must match with the current default value of TickPen.

Example

Executing the example requires a form, a button named Button1 on the form, the ChartBox and UiChart components and the UiErAnalyzer component named UiErAnalyzer1 that is used as a data source.

Class TESTForm: Form
    UiErAnalyzer1: UiErAnalyzer;
    UiChart1: UiChart;
    ChartBox1: ChartBox;
    Button1: Button;

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        APen: IGxPen;
    Begin
        APen := New GxPen.CreateSolid(New GxColor.CreateRGB(362550));
        ChartBox1.Chart.AxisX.AxisPen := APen;
    End Sub Button1OnClick;
End Class TESTForm;

After executing the example the green pen is used to fill the X axis.

See also:

IChartAxis