# ReorderTab(int, int)

> Moves the tab from the specified index to a new index.

## Definition

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

```csharp
public void ReorderTab(int from, int to)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The current index of the tab to move.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The target index to move the tab to.

### Remarks

If the TabView contains a view-data-key, reorder the tab only after the view data is applied. Otherwise, the view data will override the order.
