# Sandbox.UI.DockHost.Dock

```csharp
void Dock(string id, string relativeTo = null, DockPosition position = 0, float fraction = 0.5, int tabIndex = -1)
```

Opens or moves a registered panel. Edge fractions describe the incoming panel's share.

### Parameters

- `id` (`string`)
- `relativeTo` (`string`), default `null`
- `position` (`DockPosition`), default `0`
- `fraction` (`float`), default `0.5`
- `tabIndex` (`int`), default `-1`

Declared in [Sandbox.UI.DockHost](/api/Sandbox.UI.DockHost).
Assembly: `Sandbox.Engine`.
