Specifies the pen for drawing the chart grid.
Namespace: MindFusion.Charting
Assembly: MindFusion.Charting
C#
![]() |
---|
public Pen GridPen { get; set; } |
Visual Basic
![]() |
---|
Public Property GridPen As Pen |
An object of type MindFusion.Drawing.Pen.
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.