# window.Window.index

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

```
window.Window.index(self) -> i32
```

Return the window's index within [`Window::session_id`].

A linked window can hold a different index in each session, so this is
a property of the link rather than of the window.
