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

DetachViewer Method






Detaches this AnnAutomation object from its Leadtools.WinForms.RasterImageViewer object.
Syntax
public void DetachViewer()
'Declaration
 
Public Sub DetachViewer() 
'Usage
 
Dim instance As AnnAutomation
 
instance.DetachViewer()
public void DetachViewer()
 function Leadtools.Annotations.AnnAutomation.DetachViewer()
public:
void DetachViewer(); 
Remarks

Use AttachViewer and DetachViewer to associate a raster viewer object with an automation object.

The AnnAutomation constructor internally calls AttachViewer to associate the viewer object with itself.

Using AttachViewer and DetachViewer allows you to easily use one Leadtools.WinForms.RasterImageViewer object to view multiple automation objects. For an example, refer to the DocumentWritersDemo example code that ships with LEADTOOLS.

AttachViewer and DetachViewer should be used when you are using the LEADTOOLS Leadtools.WinForms.RasterImageViewer with this AnnAutomation object (by creating the object using the AnnAutomation(AnnAutomationManager, RasterImageViewer) constructor). When using automation with your own controls, you must instead use the Attach and Detach 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.