Error processing SSI file
LEADTOOLS Annotations (Leadtools.Annotations assembly)

Show in webframe

AttachViewer Method






The raster viewer for this AnnAutomation.
Attaches this AnnAutomation object with a Leadtools.WinForms.RasterImageViewer object.
Syntax
public void AttachViewer( 
   RasterImageViewer viewer
)
'Declaration
 
Public Sub AttachViewer( _
   ByVal viewer As RasterImageViewer _
) 
'Usage
 
Dim instance As AnnAutomation
Dim viewer As RasterImageViewer
 
instance.AttachViewer(viewer)

            

            
public:
void AttachViewer( 
   RasterImageViewer^ viewer
) 

Parameters

viewer
The raster viewer for this AnnAutomation.
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 ship 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.

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

Requirements

Target Platforms

See Also

Reference

AnnAutomation Class
AnnAutomation Members

Error processing SSI file
(Deprecated, use Leadtools.Annotations.Core instead)