# Rotate Documents

## Content

FlexViewer supports rotating document pages at run time or programmatically.

## Rotation Modes

Use the `RotateView` property to control page rotation.
The `RotateView` property accepts values from the `FlexViewerRotateView` enumeration.

| @cols=1:Value | @cols=1:Description |
| ----- | ----------- |
| @cols=1:@rows=1:`NoRotation` | @cols=1:@rows=1:Does not apply rotation to the document view. |
| @cols=1:@rows=1:`Rotation180` | @cols=1:@rows=1:Rotates the document view 180 degrees. |
| @cols=1:@rows=1:`Rotation90Clockwise` | @cols=1:@rows=1:Rotates the document view 90 degrees clockwise. |
| @cols=1:@rows=1:`Rotation90CounterClockwise` | @cols=1:@rows=1:Rotates the document view 90 degrees counterclockwise. |

## Rotate Documents at Run Time

Document pages can be rotated from the **View** menu in the FlexViewer toolbar.
The following rotation operations are supported:

* Rotate Clockwise
* Rotate Counterclockwise

Rotation is applied consistently across all pages in the document.
![image-20260505-113213](https://docapp.mescius.io/DOCUMENT_SITE_LINK_PREFIX_HERE/document-site-files/images/4e85e507-742e-4a29-b3fe-f23b37c29164/image-20260505-113213-20260513.555ef2.png?width=500)

## Rotate Documents Programmatically

To rotate document pages programmatically, set the `RotateView` property.

### <span data-highlighted="true" data-vc="highlighted-text">XAML</span>

```auto
<c1:FlexViewer x:Name="flexViewer" Grid.Row="1" Grid.ColumnSpan="2" RotateView="Rotation90Clockwise"/>
```

### C#

```auto
flexViewer.RotateView = FlexViewerRotateView.Rotation180;
```