Leadtools.Annotations Namespace > IAnnAutomationControl Interface : AutomationPaint Event |
event PaintEventHandler AutomationPaint
'Declaration Event AutomationPaint As PaintEventHandler
'Usage Dim instance As IAnnAutomationControl Dim handler As PaintEventHandler AddHandler instance.AutomationPaint, handler
event PaintEventHandler AutomationPaint
add_AutomationPaint(function(sender, e)) remove_AutomationPaint(function(sender, e))
event PaintEventHandler^ AutomationPaint
The event handler receives an argument of type PaintEventArgs containing data related to this event. The following PaintEventArgs properties provide information specific to this event.
Property | Description |
---|---|
ClipRectangle | Gets the rectangle in which to paint. |
Graphics | Gets the graphics used to paint. |
The automation control will then automatically use the values of the event arguments to draw the annotations objects. In most cases, you simply have to trigger this event in your control System.Windows.Forms.Control.Paint event or System.Windows.Forms.Control.OnPaint method and pass the same arguments (of type System.Windows.Forms.PaintEventArgs) to IAnnAutomationControl.AutomationPaint.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2