# LibTmux.NewPaneRequest.NewPaneRequest

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

```
LibTmux.NewPaneRequest.NewPaneRequest(target: string?, startDirectory: string?, attach: bool, command: string?, environment: IReadOnlyDictionary<string, string>?, width: int?, height: int?, x: int?, y: int?, zoom: bool, empty: bool, style: string?, activeBorderStyle: string?, inactiveBorderStyle: string?, message: string?, keepOpen: bool)
```

Initializes a pane-creation request.

## Parameters

- `target` (string?) — The window or pane to place against.
- `startDirectory` (string?) — The working directory for the new pane.
- `attach` (bool) — Whether the new pane becomes active.
- `command` (string?) — The command the new pane runs.
- `environment` (IReadOnlyDictionary<string, string>?) — Environment entries set on the new pane.
- `width` (int?) — The pane width in cells.
- `height` (int?) — The pane height in cells.
- `x` (int?) — The column to place the pane at.
- `y` (int?) — The row to place the pane at.
- `zoom` (bool) — Whether the new pane is zoomed.
- `empty` (bool) — Whether the pane starts with no command.
- `style` (string?) — The pane style.
- `activeBorderStyle` (string?) — The border style while the pane is active.
- `inactiveBorderStyle` (string?) — The border style while it is not.
- `message` (string?) — A message shown in the pane.
- `keepOpen` (bool) — Whether the pane stays after its command exits.

## Raises

- `ArgumentOutOfRangeException` — A supplied width or height is not positive, or a position is negative.
