Represents the method that will handle the PostPaint and PrePaint events of the Chart.
Chart paint event handler delegate.
Visual Basic (Declaration) | |
---|---|
Public Delegate Sub PaintEventHandler( _ ByVal sender As Object, _ ByVal e As ChartPaintEventArgs _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public delegate void PaintEventHandler( object sender, ChartPaintEventArgs e ) |
Parameters
The declaration of your event handler must have the same parameters as the PaintEventHandler delegate declaration.
The PrePaint event is raised just prior to a chart element being drawn, while the Postpaint event is raised just after an element is drawn.
When you create a PaintEventHandler delegate, you identify the method that will handle the specified event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family