'We assume that the GdViewer1 control has been properly integrated.
'Determine the current zoom mode.
MessageBox.Show("The current zoom mode is " + GdViewer1.ZoomMode.ToString() + ".", "GdViewer.ZoomMode")
'Set the required zoom mode. The viewer will refresh.
GdViewer1.ZoomMode = ViewerZoomMode.ZoomModeFitToViewer
//We assume that the GdViewer1 control has been properly integrated.
//Determine the current zoom mode.
MessageBox.Show("The current zoom mode is " + GdViewer1.ZoomMode.ToString()+ ".", "GdViewer.ZoomMode");
//Set the required zoom mode. The viewer will refresh.
GdViewer1.ZoomMode = ViewerZoomMode.ZoomModeFitToViewer;