Error processing SSI file
LEADTOOLS Leadtools.Documents.UI (Leadtools.Documents.UI assembly)

Show in webframe

AnnotationsInteractiveMode Class






Members 
Provides support for using the mouse or touch to handle the annotations objects in automation mode.
Object Model
Syntax
public class AnnotationsInteractiveMode : Leadtools.Controls.ImageViewerInteractiveMode 
'Declaration
 
Public Class AnnotationsInteractiveMode 
   Inherits Leadtools.Controls.ImageViewerInteractiveMode
'Usage
 
Dim instance As AnnotationsInteractiveMode
public ref class AnnotationsInteractiveMode : public Leadtools.Controls.ImageViewerInteractiveMode 
Remarks

The annotations container for each page are stored in the DocumentPage object in the current Document and can be obtained using the DocumentPage.GetAnnotations method.

When this DocumentViewer is created with the UseAnnotations set to true, An instance of AnnotationsInteractiveMode is initialized and added to the InteractiveModes list of the ImageViewer of the View.

The DocumentViewer will create an internal instance of an object that implements IAnnAutomationControl for handling the automation of the annotations containers for ImageViewer and set it in the AutomationControl property.

At any time, the mode uses hit testing to check whether the mouse or touch event is on an annotation object in design mode, if so, it will set the IsHandled value to true. This allows this mode to work in cooperation with the other interactive modes currently in the view ImageViewer and is only activated when the user hovers over or clicks a an annotation object.

Therefore, when annotation support is enabled, this mode is added by the DocumentViewer automatically upon creation. It is always enabled and the user does not have to switch it off for normal operations if annotations support is required. If this support is not needed, then this move can be either disabled (IsEnabled) or removed completely from the InteractiveModes list of ImageViewer.

The mode uses both left and right mouse buttons on operation by default. The mouse button (or touch events) is used to draw new annotations objects or move and resize existing ones. The right click uses hit-testing to invoke the AnnotationsProperties command.

Requirements

Target Platforms

See Also

Reference

AnnotationsInteractiveMode Members
Leadtools.Documents.UI Namespace
Using LEADTOOLS Document Viewer

Error processing SSI file
Leadtools.Documents.UI requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features