# LibTmux.SwapPaneRequest

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Requests/SwapPaneRequest.cs#L18
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-swappanerequest/

Describes one <c>swap-pane</c> invocation.

tmux replaces a named source with the neighbour whenever a direction is
given, so sending both would quietly drop the name.

## Members

- `Target` (property): Gets the pane to swap with.
- `Direction` (property): Gets the neighbour to swap with instead.
- `Detach` (property): Gets whether the swapped pane is left unselected.
- `KeepZoom` (property): Gets whether a zoomed pane stays zoomed.
- `ToCommand` (method): Returns a pane-swap request as one tmux command.
