# LibTmux.NewWindowRequest.WithTargetWindow

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

```
LibTmux.NewWindowRequest.WithTargetWindow(targetWindow: string) -> NewWindowRequest
```

Returns this request aimed at one window.

## Parameters

- `targetWindow` (string) — The window to insert relative to.

## Returns

A copy carrying the target.

## Raises

- `ArgumentException` — The request already names an index, which is the other way to say where
the window goes.
