# LibTmux.Pane.SetHeightAsync

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

```
LibTmux.Pane.SetHeightAsync(height: int, cancellationToken: CancellationToken) -> Task<Pane>
```

Sets this pane's height.

## Parameters

- `height` (`int`): The height in cells.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

A replacement handle carrying the new size.
