DocumentPosition Property (GdViewer)
In This Topic
Gets or sets the default page position within the GdViewer control when the rendering area of the displayed document in its current zoom configuration
is smaller than area of the control.
Syntax
Property Value
The default value is ViewerDocumentPosition.DocumentPositionMiddleCenter.
Example
How to set the required document position.
'We assume that the GdViewer1 control has been properly integrated.
'Determine the current document position.
MessageBox.Show("The current document position is " + GdViewer1.DocumentPosition.ToString() + ".", "GdViewer.DocumentPosition")
'Set the required document position.
GdViewer1.DocumentPosition = ViewerDocumentPosition.DocumentPositionTopLeft
//We assume that the GdViewer1 control has been properly integrated.
//Determine the current document position.
MessageBox.Show("The current document position is " + GdViewer1.DocumentPosition.ToString()+ ".", "GdViewer.DocumentPosition");
//Set the required document position.
GdViewer1.DocumentPosition = ViewerDocumentPosition.DocumentPositionTopLeft;
Example
How to set the required document position.
'We assume that the GdViewer1 control has been properly integrated.
'Determine the current document position.
MessageBox.Show("The current document position is " + GdViewer1.DocumentPosition.ToString() + ".", "GdViewer.DocumentPosition")
'Set the required document position.
GdViewer1.DocumentPosition = ViewerDocumentPosition.DocumentPositionTopLeft
//We assume that the GdViewer1 control has been properly integrated.
//Determine the current document position.
MessageBox.Show("The current document position is " + GdViewer1.DocumentPosition.ToString()+ ".", "GdViewer.DocumentPosition");
//Set the required document position.
GdViewer1.DocumentPosition = ViewerDocumentPosition.DocumentPositionTopLeft;
See Also