LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
InteractiveModeMouseButton Property
See Also 
Leadtools.WinForms Namespace > RasterImageViewer Class : InteractiveModeMouseButton Property



Gets or sets the current mouse button associated with the viewer interactive.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Interactive Mode")>
<DefaultValueAttribute()>
<DescriptionAttribute("Select the mouse button to use for interactive mode.")>
Public Overridable Property InteractiveModeMouseButton As MouseButtons
Visual Basic (Usage)Copy Code
Dim instance As RasterImageViewer
Dim value As MouseButtons
 
instance.InteractiveModeMouseButton = value
 
value = instance.InteractiveModeMouseButton
C# 
[CategoryAttribute("Interactive Mode")]
[DefaultValueAttribute()]
[DescriptionAttribute("Select the mouse button to use for interactive mode.")]
public virtual MouseButtons InteractiveModeMouseButton {get; set;}
C++/CLI 
[CategoryAttribute("Interactive Mode")]
[DefaultValueAttribute()]
[DescriptionAttribute("Select the mouse button to use for interactive mode.")]
public:
virtual property MouseButtons InteractiveModeMouseButton {
   MouseButtons get();
   void set (    MouseButtons value);
}

Property Value

A System.Windows.Forms.MouseButtons enumeration member that specify the current mouse button associated with the viewer interactive. Default value is MouseButtons.Left.

Example

For an example, refer to RasterImageViewer.InteractiveMode.

Remarks

Use this property to change the mouse button responsible for controlling the current interactive mode (RasterImageViewer.InteractiveMode) of this RasterImageViewer. Be careful when setting the value of this property to MouseButtons.Right since this might conflict with any context menu strips you have attached to the viewer.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also