Skip to main content

CustomDrawSeriesEventArgsBase.LegendFont Property

Gets or sets the text font of the legend item of the series or series point that is currently being painted.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.dll

Declaration

public Font LegendFont { get; set; }

Property Value

Type Description
Font

The font used to display the legend’s contents.

Remarks

Important

Use the e.DXLegendFont property instead of e.LegendFont to specify the text font of the legend item of the series or series point.

If the image specified for this property is generated in the ChartControl.CustomDrawSeries (ChartControl.CustomDrawSeriesPoint) event and should be disposed after chart drawing, set the CustomDrawSeriesEventArgsBase.DisposeLegendFont property to true to avoid memory leaks.

See Also