---
title: "RectF"
canonical_url: "https://www.nutrient.io/api/csharp/types/rect-f/"
md_url: "https://www.nutrient.io/api/csharp/types/rect-f.md"
last_updated: "2026-10-08T08:55:57.713Z"
description: "Represents a rectangle with float coordinates."
---

Represents a rectangle with float coordinates.

```csharp

using Nutrient;

public record struct RectF(float Left, float Top, float Right, float Bottom);

```

## Fields

| Name     | Type    | Description                             |
| -------- | ------- | --------------------------------------- |
| `Left`   | `float` | The left coordinate of the rectangle.   |
| `Top`    | `float` | The top coordinate of the rectangle.    |
| `Right`  | `float` | The right coordinate of the rectangle.  |
| `Bottom` | `float` | The bottom coordinate of the rectangle. |

---

## Related pages

- [Types](/api/csharp/types.md)
- [Color](/api/csharp/types/color.md)
- [Vec2f](/api/csharp/types/vec2f.md)

