Xamarin.Android | ComponentOne
Controls / FlexViewer / Features / Rotate Document
In This Topic
    Rotate Document
    In This Topic

    FlexViewer provides you the flexibility to rotate the view of PDF documents to different angles according to your requirements. You can directly rotate the view of your document using the Rotate Left and Rotate Right command buttons from the hamburger menu. Alternatively, you can rotate the view of the document programmatically using RotateMode property of the FlexViewer class. The RotateMode property accepts the following values from the RotateMode enumeration which describes the rotation angle of the view:

    The following code illustrates how to rotate the view of a PDF document by 90 degrees in clockwise direction. This example uses the sample code created in Quick Start section.

    C#
    Copy Code
    flexViewer.RotateMode = RotateMode.Rotation90Clockwise;