LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

Detach Method






Detaches this AnnAutomation object from its IAnnAutomationControl object.
Syntax
public void Detach()
'Declaration
 
Public Sub Detach() 
'Usage
 
Dim instance As AnnAutomation
 
instance.Detach()
public void Detach()
 function Leadtools.Annotations.AnnAutomation.Detach()
public:
void Detach(); 
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.

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

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnAutomation Class
AnnAutomation Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.