# session.NewWindowOptions.index

- **Module:** session.NewWindowOptions
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/session.rs#L1090
- **Page:** https://libtmux.org/en/rs/latest/reference/session-newwindowoptions-index/

```
session.NewWindowOptions.index(mut, index: i32) -> Self
```

Place the window at a window index rather than the first free one.
