# LibTmux.Window.CreatePaneAsync

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

```
LibTmux.Window.CreatePaneAsync(request: NewPaneRequest?, cancellationToken: CancellationToken) -> Task<Pane>
```

Creates a floating pane in this window.

## Parameters

- `request` (`NewPaneRequest?`): The pane to create.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

The created pane.

## Raises

- [`TmuxVersionTooLowException`](/en/csharp/latest/reference/libtmux-tmuxversiontoolowexception/): The server predates tmux 3.7, which introduced the command.
