# LibTmux.Workspace.WorkspaceWindow.WorkspaceWindow

- **Module:** LibTmux.Workspace
- **Package:** LibTmux.Workspace
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Workspace/WorkspaceFile.cs#L120
- **Page:** https://libtmux.org/en/csharp/latest/workspace/reference/libtmux-workspace-workspacewindow-workspacewindow/

```
LibTmux.Workspace.WorkspaceWindow.WorkspaceWindow(windowName: string?, startDirectory: string?, layout: string?, focus: bool, options: IReadOnlyDictionary<string, string>?, panes: IReadOnlyList<WorkspacePane>?, windowIndex: int?, optionsAfter: IReadOnlyDictionary<string, string>?)
```

Initializes a window description.

## Parameters

- `windowName` (`string?`): The window name.
- `startDirectory` (`string?`): The directory its panes start in.
- `layout` (`string?`): The layout to apply after creating its panes.
- `focus` (`bool`): Whether the window is left selected.
- `options` (`IReadOnlyDictionary<string, string>?`): The window options to set before pane commands and splits.
- `panes` (`IReadOnlyList<WorkspacePane>?`): The panes to create, in order.
- `windowIndex` (`int?`): The session-relative window index, or null for the next free index.
- `optionsAfter` (`IReadOnlyDictionary<string, string>?`): The window options to set after pane commands and the final layout.
