Gets or sets the ImageViewerInteractiveMode that the viewer control should use to process default input events.
public virtual Leadtools.Controls.ImageViewerInteractiveMode DefaultInteractiveMode {get; set;}
Public Overridable Property DefaultInteractiveMode As Leadtools.Controls.ImageViewerInteractiveMode
public virtual Leadtools.Controls.ImageViewerInteractiveMode DefaultInteractiveMode {get; set;}
@property (nonatomic, strong, nullable) LTImageViewerInteractiveMode *defaultInteractiveMode
get_DefaultInteractiveMode();
set_DefaultInteractiveMode(value);
Object.defineProperty('DefaultInteractiveMode');
The interactive mode for default input events in the viewer control. The default value is null.
To use an interactive mode, you create an instance of any of the derived classes and assign it to the viewer using one of the following methods:
ImageViewer.DefaultInteractiveMode: Assigns the interactive mode to be set as the default one.
ImageViewer.TouchInteractiveMode: Assigns the interactive mode in devices that support touch.
ImageViewer.MouseWheelInteractiveMode: Assigns the interactive mode to the mouse wheel.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Controls;
void DefaultInteractiveModeExample(int i)
{
const int CenterAt = 1;
const int MagnifyGlass = 2;
switch (i)
{
case CenterAt:
//set interactive Mode to be CenterAt
_viewer.DefaultInteractiveMode = new ImageViewerCenterAtInteractiveMode();
break;
case MagnifyGlass:
//set interactive Mode to be Magnify Glass
_viewer.DefaultInteractiveMode = new ImageViewerMagnifyGlassInteractiveMode();
break;
}
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET