# Sandbox.UI.Panel.FindInRect

```csharp
IEnumerable<Panel> FindInRect(Rect box, bool fullyInside)
```

Find and return any children of this panel (including self) within the given rect.

### Parameters

- `box` (`Rect`): The area to look for panels in, in screen-space coordinates.
- `fullyInside` (`bool`): Whether we want only the panels that are completely within the given bounds.

### Returns

`IEnumerable<Panel>`

Declared in [Sandbox.UI.Panel](/api/Sandbox.UI.Panel).
Assembly: `Sandbox.Engine`.
