# LibTmux.Window.SelectPaneAsync

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

```
LibTmux.Window.SelectPaneAsync(target: string, cancellationToken: CancellationToken) -> Task<Pane?>
```

Selects a pane in this window.

## Parameters

- `target` (string): A pane target, or a direction such as <c>-U</c>.
- `cancellationToken` (CancellationToken): Cancels the tmux command.

## Returns

The pane that is active afterwards, or null when none is.
