# Sandbox.UI.CanvasPanel.SetView

```csharp
void SetView(Vector2 min, Vector2 max)
```

Set finite, increasing bounds to fit in the viewport without modifying the content.

### Parameters

- `min` (`Vector2`)
- `max` (`Vector2`)

Declared in [Sandbox.UI.CanvasPanel](/api/Sandbox.UI.CanvasPanel).
Assembly: `Sandbox.Engine`.
