Reference Guide
GdPicture14.WPF Namespace / GdViewer Class / RenderRotation Property
Example





In This Topic
    RenderRotation Property
    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 RenderRotation As GdPictureRotateFlipType
    public GdPictureRotateFlipType RenderRotation {get;}
    public read-only property RenderRotation: GdPictureRotateFlipType; 
    public function get RenderRotation : GdPictureRotateFlipType
    public: __property GdPictureRotateFlipType get_RenderRotation();
    public:
    property GdPictureRotateFlipType RenderRotation {
       GdPictureRotateFlipType get();
    }

    Property Value

    The final page rendering rotation. A member of the System.Drawing.RotateFlipType enumeration.
    Remarks
    Please note that 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.
    GdViewer1.RotatePage(GdPictureRotateFlipType.GdPictureRotate180FlipNone)
    GdViewer1.RotateView(GdPictureRotateFlipType.GdPictureRotateNoneFlipXY)
    MessageBox.Show("The final page rendering rotation is: " + GdViewer1.RenderRotation.ToString() +
                    "\nThe page rotation is: " + GdViewer1.PageRotation.ToString() +
                    "\nThe view rotation is: " + GdViewer1.ViewRotation.ToString(), "GdViewer.RenderRotation")
    //We assume that the GdViewer1 control has been properly integrated
    //and your document has been properly displayed as well.
    GdViewer1.RotatePage(GdPictureRotateFlipType.GdPictureRotate180FlipNone);
    GdViewer1.RotateView(GdPictureRotateFlipType.GdPictureRotateNoneFlipXY);
    MessageBox.Show("The final page rendering rotation is: " + GdViewer1.RenderRotation.ToString() +
                    "\nThe page rotation is: " + GdViewer1.PageRotation.ToString() +
                    "\nThe view rotation is: " + GdViewer1.ViewRotation.ToString(), "GdViewer.RenderRotation");
    See Also