Dundas Chart for Windows Forms
PaintEventHandler Delegate
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace : PaintEventHandler Delegate


sender

The source of the event. This can be the Chart, ChartArea, Legend or Series object.

e
A ChartPaintEventArgs object, used to provide information concerning the event as well as providing custom drawing functions, etc.

Represents the method that will handle the PostPaint and PrePaint events of the Chart.


Chart paint event handler delegate.

Syntax

Visual Basic (Declaration)  
Public Delegate Sub PaintEventHandler( _
   ByVal sender As Object, _
   ByVal e As ChartPaintEventArgs _
) 
Visual Basic (Usage) Copy Code
Dim instance As New PaintEventHandler(AddressOf HandlerMethod)
C#  
public delegate void PaintEventHandler( 
   object sender,
   ChartPaintEventArgs e
)

Parameters

sender

The source of the event. This can be the Chart, ChartArea, Legend or Series object.

e
A ChartPaintEventArgs object, used to provide information concerning the event as well as providing custom drawing functions, etc.

Remarks

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.

Requirements

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

See Also

© 2009 All Rights Reserved.