The AnnAutomation Constructor(AnnAutomationManager,IAnnAutomationControl) is available in LEADTOOLS Document and Medical Imaging toolkits.
Initializes a new instance of the AnnAutomation class attached to a user control.Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal automationManager As AnnAutomationManager, _ ByVal automationControl As IAnnAutomationControl _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim automationManager As AnnAutomationManager Dim automationControl As IAnnAutomationControl Dim instance As New AnnAutomation(automationManager, automationControl) |
C# | |
---|---|
public AnnAutomation( AnnAutomationManager automationManager, IAnnAutomationControl automationControl ) |
C++/CLI | |
---|---|
public: AnnAutomation( AnnAutomationManager^ automationManager, IAnnAutomationControl^ automationControl ) |
Parameters
- automationManager
- The manager to which this AnnAutomation object will belong.
- automationControl
- The user control for this AnnAutomation
This constructor creates a new instance of the AnnAutomation class, hooks to the necessary events in automationControl 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.
To use an automation control with the LEADTOOLS Leadtools.WinForms.RasterImageViewer class, use AnnAutomation(AnnAutomationManager, RasterImageViewer).
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7