# selectedTabIndex

> A property that returns the index of current active tab inside a list of available tabs.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public int selectedTabIndex { get; set; }
```

### Remarks

Setting a valid index will set the Tab at the given index to active.
