# Sandbox.Rect.ToVector4

```csharp
Vector4 ToVector4()
```

Returns this rect as a Vector4, where X/Y/Z/W are Left/Top/Right/Bottom respectively.

### Returns

`Vector4`

Declared in [Sandbox.Rect](/api/Sandbox.Rect).
Assembly: `Sandbox.System`.
