# LibTmux.Window.SelectNextLayoutAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Window.Layout.cs#L117
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-window-selectnextlayoutasync/

tmux command: [`next-layout`](/en/tmux/latest/manual/next-layout/)

```
LibTmux.Window.SelectNextLayoutAsync(cancellationToken: CancellationToken) -> Task<Window>
```

Moves to the next layout.

## Parameters

- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

A replacement handle carrying the new layout.
