# Sandbox.UI.Panel.SetChildIndex

```csharp
void SetChildIndex(Panel child, int newIndex)
```

Move given child panel to be given index, where 0 is the first child.

### Parameters

- `child` (`Panel`)
- `newIndex` (`int`)

Declared in [Sandbox.UI.Panel](/api/Sandbox.UI.Panel).
Assembly: `Sandbox.Engine`.
