# tmux.Pane.SetHeight

- **Module:** tmux.Pane
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/pane_geometry.go#L160
- **Page:** https://libtmux.org/reference/go/tmux-pane-setheight/

```
tmux.Pane.SetHeight(ctx: context.Context, height: int) -> (Pane, error)
```

SetHeight resizes the pane to a nonnegative absolute height in cells. Zero is an explicit height. Targeting, refresh, and error semantics match [Pane.Resize].
