# LibTmux.Window.RotateAsync

- **Module:** LibTmux.Window
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Window.Lifecycle.cs#L72
- **Page:** https://libtmux.org/reference/dotnet/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.
