Back to Devexpress

CustomDrawSeriesEventArgsBase.LegendFont Property

corelibraries-devexpress-dot-xtracharts-dot-customdrawserieseventargsbase-a1605f5c.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public Font LegendFont { get; set; }
vb
Public Property LegendFont As Font

Property Value

TypeDescription
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

CustomDrawSeries

CustomDrawSeriesPoint

Legend Items

CustomDrawSeriesEventArgsBase Class

CustomDrawSeriesEventArgsBase Members

DevExpress.XtraCharts Namespace