Gets or sets the font for the chart legend.
Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms
C#
![]() |
---|
public Font LegendFont { get; set; } |
Visual Basic
![]() |
---|
Public Property LegendFont As Font |
An instance of .NET Font class.
The property specifies the font for the legend labels. The height of the font sets the height of the squares before the legend labels. The labels are drawn with LegendBrush.
Legends are drawn when the LegendLabels property is not an empty array. The position of the legend and its alignment is specified with LegendPosition and LegendAlignment.
Default value for the LegendFont property is Times New Roman, 10.