LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AutomationControl Property
See Also 
Leadtools.Annotations Namespace > AnnDesigner Class : AutomationControl Property



The AutomationControl Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the owner automation control for this AnnDesigner

Syntax

Visual Basic (Declaration) 
Public Overridable Property AutomationControl As IAnnAutomationControl
Visual Basic (Usage)Copy Code
Dim instance As AnnDesigner
Dim value As IAnnAutomationControl
 
instance.AutomationControl = value
 
value = instance.AutomationControl
C# 
public virtual IAnnAutomationControl AutomationControl {get; set;}
C++/CLI 
public:
virtual property IAnnAutomationControl^ AutomationControl {
   IAnnAutomationControl^ get();
   void set (    IAnnAutomationControl^ value);
}

Property Value

The owner IAnnAutomationControl object for this AnnDesigner.

Example

For an example, refer to AnnDesigner.

Remarks

This property is used To annotate your own control that implements IAnnAutomationControl, you must assign your control to the AutomationControl property and leave the value of Owner to be the default of null.

Note: In LEADTOOLS v17 and later, the framework uses an internal class that implements IAnnAutomationControl even when the automation is using the standard LEADTOOLS Leadtools.WinForms.RasterImageViewer class, so the value of Owner will always be null, instead, obtain the control being automated using the AutomationControl property.

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