Gets a neutral 'unset' pen to reset a Pen property when themes are used. Namespace: MindFusion.Charting
|
C#
![]() |
---|
public static Pen EmptyPen { get; } |
Visual Basic
![]() |
---|
Public Shared ReadOnly Property EmptyPen As Pen |
A value of type the MindFusion.Drawing.Pen class.
The EmptyPen property is useful when you want to change the Theme settings of a chart. The GridPen and PlotAreaOutlinePen can be cleared with EmptyPen.
C#
![]() |
---|
private void changeTheme(Theme newTheme) private void clearChartSettings() _lineChart.PlotAreaOutlinePen = Chart.EmptyPen; _lineChart.ChartPens.Clear(); |