GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / MouseWheelMode Property
Example





In This Topic
MouseWheelMode Property (GdViewer)
In This Topic
Gets or sets the mouse wheel mode, that is how the mouse wheel is used to manipulate with the displayed document.

Be aware, that you need to enable the EnableMouseWheel property to properly apply the mouse wheel mode.

Syntax
'Declaration
 
Public Property MouseWheelMode As ViewerMouseWheelMode
public ViewerMouseWheelMode MouseWheelMode {get; set;}
public read-write property MouseWheelMode: ViewerMouseWheelMode; 
public function get,set MouseWheelMode : ViewerMouseWheelMode
public: __property ViewerMouseWheelMode get_MouseWheelMode();
public: __property void set_MouseWheelMode( 
   ViewerMouseWheelMode value
);
public:
property ViewerMouseWheelMode MouseWheelMode {
   ViewerMouseWheelMode get();
   void set (    ViewerMouseWheelMode value);
}

Property Value

The default value is ViewerMouseWheelMode.MouseWheelModeZoom.
Remarks
Please ensure that you have enabled the EnableMouseWheel property to properly utilize the mouse wheel mode.
Example
How to change some properties for controlling the mouse behaviour.
'We assume that the GdViewer1 control has been properly integrated.
            
GdViewer1.MouseMode = ViewerMouseMode.MouseModeAreaZooming
GdViewer1.MouseButtonForMouseMode = MouseButton.MouseButtonRight
            
GdViewer1.EnableMouseWheel = True
GdViewer1.MouseWheelMode = ViewerMouseWheelMode.MouseWheelModeZoom
//We assume that the GdViewer1 control has been properly integrated.
            
GdViewer1.MouseMode = ViewerMouseMode.MouseModeAreaZooming;
GdViewer1.MouseButtonForMouseMode = MouseButton.MouseButtonRight;
            
GdViewer1.EnableMouseWheel = true;
GdViewer1.MouseWheelMode = ViewerMouseWheelMode.MouseWheelModeZoom;
See Also