---
Product: psd
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/psd/net/rectanglef
---

# RectangleF

## Overview

`RectangleF` is a struct in Aspose.PSD FOSS for .NET.
Inherits from: `IEquatable<RectangleF>`.

Stores a set of four floating-point numbers that represent the location and size of a rectangle.

This struct declares 5 methods for RectangleF objects in .NET programs.
Available methods include: `Equals`, `GetHashCode`, `RectangleF`, `ToString`.
Public members are accessible to any .NET application after installing the Aspose.PSD FOSS for .NET package.
Properties: `Bottom`, `Empty`, `Height`, `IsEmpty`, `Left`, `Right`, and 4 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `X` | `float` | Read/Write | Gets or sets the x-coordinate of the upper-left corner of this RectangleF. |
| `Y` | `float` | Read/Write | Gets or sets the y-coordinate of the upper-left corner of this RectangleF. |
| `Width` | `float` | Read/Write | Gets or sets the width of this RectangleF. |
| `Height` | `float` | Read/Write | Gets or sets the height of this RectangleF. |
| `Bottom` | `float` | Read | Gets the y-coordinate of the bottom edge of this RectangleF. |
| `IsEmpty` | `bool` | Read | Gets a value indicating whether this RectangleF has no location or size. |
| `Left` | `float` | Read | Gets the x-coordinate of the left edge of this RectangleF. |
| `Right` | `float` | Read | Gets the x-coordinate of the right edge of this RectangleF. |
| `Top` | `float` | Read | Gets the y-coordinate of the top edge of this RectangleF. |
| `Empty` | `RectangleF` | Read | Represents a RectangleF structure with its properties left uninitialized. |

## Methods

| Signature | Description |
|-----------|-------------|
| `RectangleF(x: float, y: float, width: float, height: float)` | Initializes a new instance of the RectangleF structure with the specified coordinates. |
| `Equals(other: RectangleF)` | Determines whether the specified rectangle is equal to this rectangle. |
| `Equals(obj: object?)` | Determines whether the specified object is equal to this rectangle. |
| `GetHashCode()` | Returns a hash code for this rectangle. |
| `ToString()` | Returns a compact coordinate representation. |

## See Also

- [Aspose.PSD for .NET — Enterprise API Reference](https://reference.aspose.com/psd/net/)