Leadtools.Annotations Namespace > AnnAutomation Class > AnnAutomation Constructor : AnnAutomation Constructor(AnnAutomationManager,IAnnAutomationControl) |
public AnnAutomation( AnnAutomationManager automationManager, IAnnAutomationControl automationControl )
'Declaration Public Function New( _ ByVal automationManager As AnnAutomationManager, _ ByVal automationControl As IAnnAutomationControl _ )
'Usage Dim automationManager As AnnAutomationManager Dim automationControl As IAnnAutomationControl Dim instance As New AnnAutomation(automationManager, automationControl)
public: AnnAutomation( AnnAutomationManager^ automationManager, IAnnAutomationControl^ automationControl )
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).