# LibTmux.Window.RotateAsync

- **Module:** LibTmux.Window
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Window.Lifecycle.cs#L72
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-window-rotateasync/

```
LibTmux.Window.RotateAsync(direction: WindowRotationDirection?, keepZoom: bool, cancellationToken: CancellationToken) -> Task<Window>
```

Rotates the panes in this window.

## Parameters

- `direction` (WindowRotationDirection?): Which way to rotate, or null for tmux's default.
- `keepZoom` (bool): Whether a zoomed pane stays zoomed.
- `cancellationToken` (CancellationToken): Cancels the tmux command.

## Returns

A replacement handle carrying the state after rotation.
