---
Product: Aspose.Cells
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/python/alignment
---

# Alignment

## Overview

`Alignment` is a class in Aspose.Cells FOSS for Python.

Represents alignment settings for a cell or range of cells.

This class declares 1 method for Alignment objects in Python programs.
Available methods include: `__init__`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: `horizontal`, `indent`, `reading_order`, `relative_indent`, `shrink_to_fit`, `text_rotation`, and 2 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `horizontal` | - | Read | Gets the horizontal. |
| `vertical` | - | Read | Gets the vertical. |
| `wrap_text` | - | Read | Gets the wrap text. |
| `indent` | - | Read | Gets the indent. |
| `text_rotation` | - | Read | Gets the text rotation. |
| `shrink_to_fit` | - | Read | Gets the shrink to fit. |
| `reading_order` | - | Read | Gets the reading order. |
| `relative_indent` | - | Read | Gets the relative indent. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(horizontal, vertical, wrap_text, indent, text_rotation, shrink_to_fit, reading_order, relative_indent)` | Initializes a new instance of Alignment class. |

## See Also

- [Aspose.Cells for Python — Enterprise API Reference](https://reference.aspose.com/cells/python-java/)