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

# RectangleAlignment

## Overview

`RectangleAlignment` is a enum in Aspose.Slides FOSS for Python.

Defines 2-dimension allignment.

This enumeration defines 10 values: `NOT_DEFINED`, `TOP_LEFT`, `TOP`, `TOP_RIGHT`, `LEFT`, `CENTER`, `RIGHT`, `BOTTOM_LEFT`, `BOTTOM`, `BOTTOM_RIGHT`.

## Values

| Value | Description |
|-------|-------------|
| `NOT_DEFINED` | Represents an undefined or default rectangle alignment |
| `TOP_LEFT` | Aligns the rectangle to the top‑left corner |
| `TOP` | Aligns the rectangle to the top edge, centered horizontally |
| `TOP_RIGHT` | Aligns the rectangle to the top‑right corner |
| `LEFT` | Aligns the rectangle to the left edge, centered vertically |
| `CENTER` | Aligns the rectangle to the center of both axes |
| `RIGHT` |  |
| `BOTTOM_LEFT` | Aligns the rectangle to the bottom‑left corner |
| `BOTTOM` |  |
| `BOTTOM_RIGHT` | Aligns the rectangle to the bottom‑right corner |

## See Also

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