'Declaration
Public Property Zoom As Double
public double Zoom {get; set;}
public read-write property Zoom: Double;
public function get,set Zoom : double
If the newly specified Zoom value is the same as the current Zoom value, this method does nothing.
'Declaration
Public Property Zoom As Double
public double Zoom {get; set;}
public read-write property Zoom: Double;
public function get,set Zoom : double
Likewise, the ZoomChanged event, respectively the PreviewZoomChanged event, is raised using this method.
Please try the Document Viewer Sample in your [INSTALLATION FOLDER]/Samples/WPF folder to find out, how to utilize zooming features in your application.
'We assume that the GdViewer1 control has been properly integrated. 'Determine the current zoom. Dim z As Short = (Math.Round(GdViewer1.Zoom * 100)) MessageBox.Show("The current zoom is " + z.ToString() + "%.", "GdViewer.Zoom") 'Set the current zoom to 150%. The viewer will refresh. GdViewer1.Zoom = 1.5
//We assume that the GdViewer1 control has been properly integrated. //Determine the current zoom. short z = (short)(Math.Round(GdViewer1.Zoom * 100)); MessageBox.Show("The current zoom is " + z.ToString() + "%.", "GdViewer.Zoom"); //Set the current zoom to 150%. The viewer will refresh. GdViewer1.Zoom = 1.5;