MindFusion.Charting Programmer's Guide

Chart.LegendFont Property

See Also
 





Gets or sets the font for the chart legend.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public Font LegendFont { get; set; }

Visual Basic  Copy Code

Public Property LegendFont As Font

 Property Value

An object of type System.Drawing.Font.

 Remarks

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.

 See Also