In This Topic

ZoomIN Method (GdViewer)

In This Topic
Increases the current zoom level, it means zooms in on the viewer. 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 viewer 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.

The ZoomChanged event, respectively the PreviewZoomChanged event, is raised using this method.

Example
Please try the Document Viewer Sample in your [INSTALLATION FOLDER]/Samples/WPF folder to find out, how to utilize zooming features in your application.
See Also