LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AutomationPaint Event
See Also 
Leadtools.Annotations Namespace > IAnnAutomationControl Interface : AutomationPaint Event



The AutomationPaint Event is available in LEADTOOLS Document and Medical Imaging toolkits.

An event that triggers whenever the surface of the control is invalidated

Syntax

Visual Basic (Declaration) 
Event AutomationPaint As PaintEventHandler
Visual Basic (Usage)Copy Code
Dim instance As IAnnAutomationControl
Dim handler As PaintEventHandler
 
AddHandler instance.AutomationPaint, handler
C# 
event PaintEventHandler AutomationPaint
C++/CLI 
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.

Example

For an example, refer to IAnnAutomationControl.

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features