A method that will handle the ChartControl.CustomPaint, WebChartControl.CustomPaint, or XRChart.CustomPaint event.
NuGet Package: DevExpress.Charts
public delegate void CustomPaintEventHandler( object sender, CustomPaintEventArgs e );
Public Delegate Sub CustomPaintEventHandler( sender As Object, e As CustomPaintEventArgs )
The event source. This parameter identifies the ChartControl, WebChartControl or XRChart which raised the event.
A CustomPaintEventArgs object that contains data related to the event.
On the WinForms platform, cast the Event Args object to the DXCustomPaintEventArgs class and use its DXCustomPaintEventArgs.Cache property to draw custom content properly in the control surface correctly in the DirectX mode. Note that this property also allows you to draw custom content in the GDI+ mode.
When creating a
CustomPaintEventHandler delegate, identify a method that will handle corresponding events. To associate an event with an event handler, add a delegate instance to the event. The event handler is called whenever the event occurs, unless the delegate is removed.
For more information on event handler delegates, see Events and Delegates in MSDN.