Alignment

Overview

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

Represents alignment settings for a cell or range of cells.

Properties

NameTypeAccessDescription
horizontal``ReadSpecifies the cell’s horizontal alignment (e.g., left, center, right)
vertical``ReadSpecifies the cell’s vertical alignment (e.g., top, middle, bottom)
wrap_text``ReadIndicates whether text in the cell should wrap onto multiple lines
indent``ReadDefines the number of spaces to indent the cell’s text
text_rotation``ReadSets the angle at which the cell’s text is displayed
shrink_to_fit``ReadDetermines if the cell’s text should shrink to fit the cell width
reading_order``ReadSpecifies the direction in which text is read (e.g., left-to-right)
relative_indent``ReadAdjusts the indent relative to the cell’s default indentation

Methods

SignatureDescription
__init__(horizontal, vertical, wrap_text, indent, text_rotation, shrink_to_fit, reading_order, relative_indent)Initializes a new instance of Alignment class.

See Also