# LibTmux.Pane.ResizeAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Pane.Topology.cs#L328
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-pane-resizeasync/

tmux command: [`resize-pane`](/en/tmux/latest/manual/resize-pane/)

```
LibTmux.Pane.ResizeAsync(request: ResizePaneRequest, cancellationToken: CancellationToken) -> Task<Pane>
```

Resizes this pane.

tmux clamps a size that does not fit rather than refusing it, so the
result may differ from what was asked for.

## Parameters

- `request` (`ResizePaneRequest`): The size to apply.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

A replacement handle carrying the new size.
