# LibTmux.NewPaneRequest.ToCommand

- **Module:** LibTmux.NewPaneRequest
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Requests/NewPaneRequest.cs#L148
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-newpanerequest-tocommand/

```
LibTmux.NewPaneRequest.ToCommand(pane: Pane) -> TmuxCommand
```

Returns a floating-pane request as one tmux command.

The command arrived whole in tmux 3.7, so batching does not soften the
refusal below that: an older server has nothing to send it to.

## Parameters

- `pane` (Pane): The pane the new one is created from.

## Returns

The command, ready to add to a <see cref="TmuxChain" />.

## Raises

- `ArgumentNullException`: <paramref name="pane" /> is null.
- `TmuxVersionTooLowException`: tmux is older than 3.7.
