ChartControl.CustomPaint Event
Occurs after all the chart’s visual elements have been drawn.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v18.1.UI.dll
Declaration
Event Data
The CustomPaint event's data class is CustomPaintEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Bounds | Gets the bounds of a custom graphic object. |
Graphics | Gets the custom graphic object. |
Remarks
Use the CustomPaint event, to draw custom graphics over your chart.
For example, using the XYDiagram2D.DiagramToPoint and RadarDiagram.DiagramToPoint methods in the CustomPaint event handler, allows you to draw custom graphic objects tied to the existing chart elements (series, series points and so on).
The graphics drawn in the CustomPaint event handler will not affect 3D charts.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the CustomPaint event.
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.