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





In This Topic
MouseMode Property (GdViewer)
In This Topic
Gets or sets the mouse mode, that is how the mouse is used to manipulate with the displayed document.
Syntax
'Declaration
 
Public Property MouseMode As ViewerMouseMode
public ViewerMouseMode MouseMode {get; set;}
public read-write property MouseMode: ViewerMouseMode; 
public function get,set MouseMode : ViewerMouseMode
public: __property ViewerMouseMode get_MouseMode();
public: __property void set_MouseMode( 
   ViewerMouseMode value
);
public:
property ViewerMouseMode MouseMode {
   ViewerMouseMode get();
   void set (    ViewerMouseMode value);
}

Property Value

The default value is ViewerMouseMode.MouseModePan.
Remarks
Please note, that if you apply continuous viewing, setting this property to ViewerMouseMode.MouseModePan will change pages continuously when usign the pan tool regardles of the PageDisplayMode property.
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