Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AttachViewer Method
See Also 
Leadtools.Annotations Namespace > AnnAutomation Class : AttachViewer Method



viewer
The raster viewer for this AnnAutomation.
viewer
The raster viewer for this AnnAutomation.
Attaches this AnnAutomation object with a RasterImageViewer object.

Syntax

Visual Basic (Declaration) 
Public Sub AttachViewer( _
   ByVal viewer As RasterImageViewer _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomation
Dim viewer As RasterImageViewer
 
instance.AttachViewer(viewer)
C# 
public void AttachViewer( 
   RasterImageViewer viewer
)
C++/CLI 
public:
void AttachViewer( 
   RasterImageViewer viewer
) 

Parameters

viewer
The raster viewer for this AnnAutomation.

Remarks

Use theAttachViewer 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 RasterImageViewer object to view multiple automation objects. For an example, refer to the DocumentWritersDemo example code that ship with LEADTOOLS.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features