# LibTmux.SplitPaneRequest.SplitPaneRequest

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

```
LibTmux.SplitPaneRequest.SplitPaneRequest(target: string?, startDirectory: string?, attach: bool, direction: PaneDirection?, fullWindow: bool, zoom: bool, command: string?, size: string?, percentage: int?, environment: IReadOnlyDictionary<string, string>?, empty: bool, style: string?, activeBorderStyle: string?, inactiveBorderStyle: string?, message: string?, keepOpen: bool)
```

Initializes a pane-split request.

## Parameters

- `target` (string?) — The pane to split, or null for the active one.
- `startDirectory` (string?) — The working directory for the new pane.
- `attach` (bool) — Whether the new pane becomes active.
- `direction` (PaneDirection?) — Where the new pane goes.
- `fullWindow` (bool) — Whether the split spans the whole window.
- `zoom` (bool) — Whether the new pane is zoomed.
- `command` (string?) — The command the new pane runs.
- `size` (string?) — An explicit size in cells.
- `percentage` (int?) — A size as a percentage of the window.
- `environment` (IReadOnlyDictionary<string, string>?) — Environment entries set on the new pane.
- `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

- `ArgumentException` — Both <paramref name="size" /> and <paramref name="percentage" /> are set.
- `ArgumentOutOfRangeException` — <paramref name="percentage" /> is outside 1 to 100.
