AxisPen: IGxPen;
The AxisPen property determines parameters of pen to draw axis line.
NOTE. Default value of the AxisPen property should match current default value of the TickPen property.
Executing this example requires a form, a button named Button1 located on this form, the ChartBox and UiChart components and the UiErAnalyzer component named UiErAnalyzer1 that is used as the 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(36, 255, 0));
ChartBox1.Chart.AxisX.AxisPen := APen;
End Sub Button1OnClick;
End Class TESTForm;
After executing the example green pen is used to fill the X axis.
See also: