Chart.OnPrePaint Method

Occurs after the chart element background is painted.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

protected virtual void OnPrePaint(
	ChartPaintEventArgs e
)

Parameters

e
Type: System.Web.UI.DataVisualization.Charting.ChartPaintEventArgs

The ChartPaintEventArgs object which provides data for the event.

This event occurs just prior to a chart element being drawn, and is raised once for the chart image, and one time for each of the ChartArea, Legend, Series and DataPoint objects that exist within the chart image. Note that this event is not raised for Series and DataPoint objects for 3D charts.

.NET Framework

Supported in: 4.6, 4.5, 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft