Skip to main content

CustomDrawSeriesEventArgsBase.LegendMarkerImage Property

Gets or sets the image of the legend item marker of the series or series point that is currently being painted.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.dll

NuGet Package: DevExpress.Charts

Declaration

public Image LegendMarkerImage { get; set; }

Property Value

Type Description
Image

The image of the legend item marker.

Remarks

Important

Use the e.DXLegendMarkerImage instead of LegendMarkerImage to specify an image in non-Windows environments.

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.DisposeLegendMarkerImage property to true to avoid memory leaks.

The following code snippets (auto-collected from DevExpress Examples) contain references to the LegendMarkerImage property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also