GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / ZoomIN Method





In This Topic
ZoomIN Method (GdViewer)
In This Topic
Increases the current zoom level, it means zooms in on the control. You can use ZoomStep property to determine or to reset the currently used zoom step.

This method sets the ZoomMode property to ViewerZoomMode.ZoomModeCustom and refreshes the control as well.

Syntax
'Declaration
 
Public Function ZoomIN() As GdPictureStatus
public GdPictureStatus ZoomIN()
public function ZoomIN(): GdPictureStatus; 
public function ZoomIN() : GdPictureStatus;
public: GdPictureStatus ZoomIN(); 
public:
GdPictureStatus ZoomIN(); 

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK. We strongly recommend always checking this status first.
Remarks
The value of the ZoomStep property is used as the magnification factor when zooming.

Both the BeforeZoomChange and the AfterZoomChange events are raised using this method.

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