# Editor.Widget.ConstrainToScreen

```csharp
void ConstrainToScreen()
```

Constrain this widget to the screen it's currently on.

Declared in [Editor.Widget](/api/Editor.Widget).
Assembly: `Sandbox.Tools`.
