'We assume that the GdViewer1 control has been properly integrated.
'Determine the current document alignment.
MessageBox.Show("The current document alignment is " + GdViewer1.DocumentAlignment.ToString() + ".", "GdViewer.DocumentAlignment")
'Set the required document alignment.
GdViewer1.DocumentAlignment = ViewerDocumentAlignment.DocumentAlignmentTopLeft
//We assume that the GdViewer1 control has been properly integrated.
//Determine the current document alignment.
MessageBox.Show("The current document alignment is " + GdViewer1.DocumentAlignment.ToString()+ ".", "GdViewer.DocumentAlignment");
//Set the required document alignment.
GdViewer1.DocumentAlignment = ViewerDocumentAlignment.DocumentAlignmentTopLeft;