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



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

Detaches this AnnAutomation object from its Leadtools.WinForms.RasterImageViewer object.

Syntax

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

Example

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

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.

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