LinePen: IGxPen;
The LinePen property determines parameters of gridlines vertical to the axis.
This example assumes that there is the ChartAxis object of the IChartAxis type.
Sub LinePen;
Var
ChartAxis: IChartAxis;
LPen: IGxPen;
Begin
LPen := New GxPen.CreateSolid(New GxColor.CreateARGB(255,0,0,255), 0.5);
ChartAxis.LinePen := LPen;
End Sub LinePen;
After executing the example gridlines are displayed in blue and their thickness equals to 0.5 mm.
See also: