# LibTmux.ResizePaneRequest.ResizePaneRequest

- **Module:** LibTmux.ResizePaneRequest
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Requests/ResizePaneRequest.cs#L27
- **Page:** https://libtmux.org/reference/dotnet/libtmux-resizepanerequest-resizepanerequest/

```
LibTmux.ResizePaneRequest.ResizePaneRequest(direction: ResizeDirection?, adjustment: int?, width: string?, height: string?, zoom: bool, mouse: bool, trimBelow: bool)
```

Initializes a pane-resize request.

## Parameters

- `direction` (ResizeDirection?) — The edge to move.
- `adjustment` (int?) — How many cells to move it by.
- `width` (string?) — An explicit width in cells or a percentage.
- `height` (string?) — An explicit height in cells or a percentage.
- `zoom` (bool) — Whether the pane's zoom is toggled.
- `mouse` (bool) — Whether the resize follows the mouse.
- `trimBelow` (bool) — Whether lines below the cursor are trimmed.

## Raises

- `ArgumentException` — No sizing instruction is given, more than one is, or a direction has no
adjustment.
- `ArgumentOutOfRangeException` — A supplied adjustment is not positive.
