Alignment
Overview
Alignment is a class in Aspose.Cells FOSS for Python.
Represents alignment settings for a cell or range of cells.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
horizontal | `` | Read | Specifies the cell’s horizontal alignment (e.g., left, center, right) |
vertical | `` | Read | Specifies the cell’s vertical alignment (e.g., top, middle, bottom) |
wrap_text | `` | Read | Indicates whether text in the cell should wrap onto multiple lines |
indent | `` | Read | Defines the number of spaces to indent the cell’s text |
text_rotation | `` | Read | Sets the angle at which the cell’s text is displayed |
shrink_to_fit | `` | Read | Determines if the cell’s text should shrink to fit the cell width |
reading_order | `` | Read | Specifies the direction in which text is read (e.g., left-to-right) |
relative_indent | `` | Read | Adjusts the indent relative to the cell’s default indentation |
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. |