LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AnnAutomation Constructor(AnnAutomationManager,RasterImageViewer)
See Also 
Leadtools.Annotations Namespace > AnnAutomation Class > AnnAutomation Constructor : AnnAutomation Constructor(AnnAutomationManager,RasterImageViewer)



automationManager
The manager to which this AnnAutomation object will belong.
viewer
The raster viewer for this AnnAutomation

The AnnAutomation Constructor(AnnAutomationManager,RasterImageViewer) is available in LEADTOOLS Document and Medical Imaging toolkits.

Initializes a new instance of the AnnAutomation class attached to a LEADTOOLS Leadtools.WinForms.RasterImageViewer.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal automationManager As AnnAutomationManager, _
   ByVal viewer As RasterImageViewer _
)
Visual Basic (Usage)Copy Code
Dim automationManager As AnnAutomationManager
Dim viewer As RasterImageViewer
 
Dim instance As New AnnAutomation(automationManager, viewer)
C# 
public AnnAutomation( 
   AnnAutomationManager automationManager,
   RasterImageViewer viewer
)
C++/CLI 
public:
AnnAutomation( 
   AnnAutomationManager^ automationManager,
   RasterImageViewer^ viewer
)

Parameters

automationManager
The manager to which this AnnAutomation object will belong.
viewer
The raster viewer for this AnnAutomation

Example

For an example, refer to AnnAutomationManager.

Remarks

This constructor creates a new instance of the AnnAutomation class, hooks to the necessary events in viewer to handle the user interface, creates the Container that will hold the annotation objects and finally adds this newly created AnnAutomationObject to the AnnAutomationManager.Automations collection.

Internally, this method will create a helper object that implements IAnnAutomationControl for viewer and uses an object of this class.

To use automation with your own control instead of the LEADTOOLS Leadtools.WinForms.RasterImageViewer, use AnnAutomation(AnnAutomationManager, IAnnAutomationControl).

Refer to IAnnAutomationControl for an example on how to use LEADTOOLS annotations with your own controls.

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