Specifies the pen for drawing the chart grid.
Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms
C#
![]() |
---|
public Pen GridPen { get; set; } |
Visual Basic
![]() |
---|
Public Property GridPen As Pen |
An instance of MindFusion.Drawing.Pen class.
The GridPen is used for drawing the chart grid when the GridType is not GridType.None or GridType.Custom. The grid stripes are painted with GridBrush and AltGridBrush. You can have a grid that has only stripes and no lines are drawn. In this case, set GridPen to null.
To draw a border around the grid, use PlotAreaOutlinePen.
Default value for the GridPen is null, that is, no grid is drawn.