Example





In This Topic
GdPicture14 Namespace / GdViewer Class / PageRenderRotation Property

PageRenderRotation Property (GdViewer)

In This Topic
Returns the final rendering rotation of the current page of the document displayed in the GdViewer control. It is the sum of the values of the ViewRotation and the PageRotation properties.
Syntax
'Declaration
 
Public ReadOnly Property PageRenderRotation As RotateFlipType
public RotateFlipType PageRenderRotation {get;}
public read-only property PageRenderRotation: RotateFlipType; 
public function get PageRenderRotation : RotateFlipType
public: __property RotateFlipType get_PageRenderRotation();
public:
property RotateFlipType PageRenderRotation {
   RotateFlipType get();
}

Property Value

A member of the System.Drawing.RotateFlipType enumeration. The final page rendering rotation.
Remarks
This rotation is the combination of the ViewRotation and the PageRotation.
Example
How to determine the final rendering rotation of the currently displayed page.
'We assume that the GdViewer1 control has been properly integrated
'and your document has been properly displayed as well.
If ((GdViewer1.Rotate(RotateFlipType.Rotate180FlipNone) = GdPictureStatus.OK) AndAlso
    (GdViewer1.RotateView(RotateFlipType.RotateNoneFlipXY) = GdPictureStatus.OK)) Then
    MessageBox.Show("The final page rendering rotation is: " + GdViewer1.PageRenderRotation.ToString() + vbCrLf +
                    "The page rotation is: " + GdViewer1.PageRotation.ToString() + vbCrLf +
                    "The view rotation is: " + GdViewer1.ViewRotation.ToString(), "GdViewer.PageRenderRotation")
End If
//We assume that the GdViewer1 control has been properly integrated
//and your document has been properly displayed as well.
if ((GdViewer1.Rotate(RotateFlipType.Rotate180FlipNone) == GdPictureStatus.OK) &&
    (GdViewer1.RotateView(RotateFlipType.RotateNoneFlipXY) == GdPictureStatus.OK))
{
    MessageBox.Show("The final page rendering rotation is: " + GdViewer1.PageRenderRotation.ToString() +
                    "\nThe page rotation is: " + GdViewer1.PageRotation.ToString() +
                    "\nThe view rotation is: " + GdViewer1.ViewRotation.ToString(), "GdViewer.PageRenderRotation");
}
See Also