# Sandbox.UI.Panel.ScrollIntoView

```csharp
bool ScrollIntoView(Rect rect)
```

Scroll the least amount that brings a screen-space rect inside the content box. Returns false if
nothing scrolled. The offset isn't clamped here: content that has just grown hasn't updated the
scroll range yet, and the next layout clamps anyway.

### Parameters

- `rect` (`Rect`)

### Returns

`bool`

Declared in [Sandbox.UI.Panel](/api/Sandbox.UI.Panel).
Assembly: `Sandbox.Engine`.
