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





In This Topic
ZoomCenterAtMousePosition Property (GdViewer)
In This Topic
Specifies if the document displayed in the GdViewer control is centered to the currently defined mouse position when performing any zoom action.
Syntax
'Declaration
 
Public Property ZoomCenterAtMousePosition As Boolean
public bool ZoomCenterAtMousePosition {get; set;}
public read-write property ZoomCenterAtMousePosition: Boolean; 
public function get,set ZoomCenterAtMousePosition : boolean
public: __property bool get_ZoomCenterAtMousePosition();
public: __property void set_ZoomCenterAtMousePosition( 
   bool value
);
public:
property bool ZoomCenterAtMousePosition {
   bool get();
   void set (    bool value);
}

Property Value

The default value is false.
Remarks
If the PageDisplayMode property is other than PageDisplayMode.SinglePageView, this property must be set to false.

Please try the Document Viewer Sample here to find out, how to utilize zooming features in your application.

Example
How to properly set and use this property.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.PageDisplayMode = PageDisplayMode.SinglePageView
GdViewer1.ZoomCenterAtMousePosition = True
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.PageDisplayMode = PageDisplayMode.SinglePageView;
GdViewer1.ZoomCenterAtMousePosition = true;
See Also