LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

AutomationPaint Event






An event that triggers whenever the surface of the control is invalidated
Syntax
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
Event Data

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.

PropertyDescription
ClipRectangle Gets the rectangle in which to paint.
Graphics Gets the graphics used to paint.
Remarks

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.

Example
For an example, refer to IAnnAutomationControl.
Requirements

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

See Also

Reference

IAnnAutomationControl Interface
IAnnAutomationControl Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.