MindFusion.Charting Programmer's Guide

Chart.LegendFont Property

See Also
 





Gets or sets the font for the chart legend.

Namespace: MindFusion.Charting.WebForms
Assembly: MindFusion.Charting.WebForms

 Syntax

C#  Copy Code

public Font LegendFont { get; }

Visual Basic  Copy Code

Public ReadOnly Property LegendFont As Font

 Property Value

An object of type .NET Font class.

 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