Back to Devexpress

WebChartControl.CustomPaint Event

aspnet-devexpress-dot-xtracharts-dot-web-dot-webchartcontrol-848279fa.md

latest2.3 KB
Original Source

WebChartControl.CustomPaint Event

Occurs after the chart has been drawn.

Namespace : DevExpress.XtraCharts.Web

Assembly : DevExpress.XtraCharts.v25.2.Web.dll

NuGet Package : DevExpress.Web.Visualization

Declaration

csharp
public event CustomPaintEventHandler CustomPaint
vb
Public Event CustomPaint As CustomPaintEventHandler

Event Data

The CustomPaint event's data class is CustomPaintEventArgs. The following properties provide information specific to this event:

PropertyDescription
BoundsGets the bounds of a custom graphic object.
DXGraphics
GraphicsGets 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.

See Also

WebChartControl Class

WebChartControl Members

DevExpress.XtraCharts.Web Namespace