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