Chart.OnPrePaint Method (ChartPaintEventArgs)

.NET Framework (current version)

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


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
Available since 4.0
Return to top