Gets or sets the value that controls user interaction with the control's display.
[CategoryAttribute("Interactive Mode")]
[DescriptionAttribute("Select one of the interactive modes available when the user interacts with the control.")]
public virtual Leadtools.Winforms.RasterViewerInteractiveMode InteractiveMode {get; set;}
<CategoryAttribute("Interactive Mode")>
<DescriptionAttribute("Select one of the interactive modes available when the user interacts with the control.")>
Public Overridable Property InteractiveMode As Leadtools.Winforms.RasterViewerInteractiveMode
[CategoryAttribute("Interactive Mode")]
[DescriptionAttribute("Select one of the interactive modes available when the user interacts with the control.")]
public:
virtual property Leadtools.Winforms.RasterViewerInteractiveMode InteractiveMode {
Leadtools.Winforms.RasterViewerInteractiveMode get();
void set ( Leadtools.Winforms.RasterViewerInteractiveMode );
}
The value which controls the user interaction with the control's display.
By default, the mouse left button starts and controls the interactive mode. To change this behavior, refer to InteractiveModeMouseButton.
You can change the mouse cursor associated with a particular interative mode with the SetInteractiveModeCursor method.
This sample changes between interactive modes -- from none, to pan, to magnifying glass, to Region, and back to none.
Imports Leadtools.WinForms
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing.Color
Imports Leadtools.Drawing
Private Sub viewer_InteractiveModeChanged(ByVal sender As Object, ByVal e As EventArgs)
Dim viewer As RasterImageViewer = CType(IIf(TypeOf sender Is RasterImageViewer, sender, Nothing), RasterImageViewer)
Dim s As String = String.Format("InteractiveMode changed to: {0}", viewer.InteractiveMode.ToString())
MessageBox.Show(s)
End Sub
Public Sub RasterImageViewer_InteractiveMode(ByVal viewer As RasterImageViewer)
AddHandler viewer.InteractiveModeChanged, AddressOf viewer_InteractiveModeChanged
AddHandler viewer.InteractivePan, AddressOf viewer_InteractivePan
viewer.InteractiveRegionType = RasterViewerInteractiveRegionType.Ellipse
viewer.InteractiveRegionCombineMode = RasterRegionCombineMode.Set
Select Case viewer.InteractiveMode
Case RasterViewerInteractiveMode.None
viewer.InteractiveMode = RasterViewerInteractiveMode.Pan
Case RasterViewerInteractiveMode.Pan
viewer.InteractiveMode = RasterViewerInteractiveMode.MagnifyGlass
Case RasterViewerInteractiveMode.MagnifyGlass
viewer.InteractiveMode = RasterViewerInteractiveMode.Region
Case RasterViewerInteractiveMode.Region
viewer.InteractiveMode = RasterViewerInteractiveMode.None
End Select
RemoveHandler viewer.InteractiveModeChanged, AddressOf viewer_InteractiveModeChanged
End Sub
using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing.Color;
using Leadtools.Drawing;
private void viewer_InteractiveModeChanged(object sender, EventArgs e)
{
RasterImageViewer viewer = sender as RasterImageViewer;
string s = string.Format("InteractiveMode changed to: {0}", viewer.InteractiveMode.ToString());
MessageBox.Show(s);
}
public void RasterImageViewer_InteractiveMode(RasterImageViewer viewer)
{
viewer.InteractiveModeChanged += new EventHandler(viewer_InteractiveModeChanged);
viewer.InteractivePan += new EventHandler<RasterViewerLineEventArgs>(viewer_InteractivePan);
viewer.InteractiveRegionType = RasterViewerInteractiveRegionType.Ellipse;
viewer.InteractiveRegionCombineMode = RasterRegionCombineMode.Set;
switch (viewer.InteractiveMode)
{
case RasterViewerInteractiveMode.None:
viewer.InteractiveMode = RasterViewerInteractiveMode.Pan;
break;
case RasterViewerInteractiveMode.Pan:
viewer.InteractiveMode = RasterViewerInteractiveMode.MagnifyGlass;
break;
case RasterViewerInteractiveMode.MagnifyGlass:
viewer.InteractiveMode = RasterViewerInteractiveMode.Region;
break;
case RasterViewerInteractiveMode.Region:
viewer.InteractiveMode = RasterViewerInteractiveMode.None;
break;
}
viewer.InteractiveModeChanged -= new EventHandler(viewer_InteractiveModeChanged);
}
![]() |
Products |
Support |
Feedback: InteractiveMode Property - Leadtools.WinForms |
Introduction |
Help Version 19.0.2017.3.22
|
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.