# session.NewWindowOptions.index

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

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

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