
public virtual ImageViewerInteractiveMode DefaultInteractiveMode {get; set;}
Public Overridable Property DefaultInteractiveMode As ImageViewerInteractiveMode
public virtual ImageViewerInteractiveMode DefaultInteractiveMode {get; set;}
get_DefaultInteractiveMode();
set_DefaultInteractiveMode(value);
Object.defineProperty('DefaultInteractiveMode');
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.
Copy Code
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Controls;
[TestMethod]
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;
}
}