---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/RectangleF
---

# RectangleF

## Overview

`RectangleF` is a class in Aspose.Slides FOSS for Java.

Represents a rectangle defined by position and size using floating-point coordinates.

This class provides 8 methods for working with RectangleF objects in Java programs.
Available methods include: `RectangleF`, `equals`, `getHeight`, `getWidth`, `getX`, `getY`, `hashCode`, `toString`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `height`, `width`, `x`, `y`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `x` | `float` | Read | Gets the x-coordinate of the upper-left corner. |
| `y` | `float` | Read | Gets the y-coordinate of the upper-left corner. |
| `width` | `float` | Read | Gets the width. |
| `height` | `float` | Read | Gets the height. |

## Methods

| Signature | Description |
|-----------|-------------|
| `RectangleF(x: float, y: float, width: float, height: float)` | Creates a new RectangleF. |
| `getX()` → `float` | Gets the x-coordinate of the upper-left corner. |
| `getY()` → `float` | Gets the y-coordinate of the upper-left corner. |
| `getWidth()` → `float` | Gets the width. |
| `getHeight()` → `float` | Gets the height. |
| `equals(obj: Object)` → `boolean` | Determines whether the given object is equal to this RectangleF |
| `hashCode()` → `int` | Returns an integer hash code for this RectangleF |
| `toString()` → `String` | Returns a string representation of this RectangleF |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)