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



The Detach Method is available in LEADTOOLS Document and Medical Imaging toolkits.

Detaches this AnnAutomation object from its IAnnAutomationControl object.

Syntax

Visual Basic (Declaration) 
Public Sub Detach() 
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomation
 
instance.Detach()
C# 
public void Detach()
C++/CLI 
public:
void Detach(); 

Example

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

Remarks

Use Attach and Detach to associate an automation control with an automation object.

The AnnAutomation constructor internally calls Attach to associate the control with itself.

Using Attach and Detach allows you to easily use one IAnnAutomationControl object to view multiple automation objects.

Attach and Detach should be used when you are using the IAnnAutomationControl class with this AnnAutomation object (by creating the object using the AnnAutomation(AnnAutomationManager, IAnnAutomationControl) constructor). When using automation with the LEADTOOLS Leadtools.WinForms.RasterImageViewer, you must instead use the AttachViewer and DetachViewer methods instead.

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