# LibTmux.Window.SelectPaneAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Window.Panes.cs#L66
- **Page:** https://libtmux.org/en/csharp/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.
