ShapeTextAlignment class

ShapeTextAlignment class

Represents the setting of shape’s text alignment;

The ShapeTextAlignment type exposes the following members:

Properties

PropertyDescription
is_text_wrappedGets and sets the text wrapped type of the shape which contains text.
rotate_text_with_shapeIndicates whether rotating text with shape.
text_vertical_overflowGets and sets the text vertical overflow type of the text box.
text_horizontal_overflowGets and sets the text horizontal overflow type of the text box.
rotation_angleGets and sets the rotation of the shape.
text_vertical_typeGets and sets the text direction.
is_locked_textIndicates whether the shape is locked when worksheet is protected.
auto_sizeIndicates if size of shape is adjusted automatically according to its content.
text_shape_typeGets and set the transform type of text.
top_margin_ptReturns the top margin in unit of Points
bottom_margin_ptReturns the bottom margin in unit of Points
left_margin_ptReturns the left margin in unit of Points
right_margin_ptReturns the right margin in unit of Points
is_auto_marginIndicates whether the margin of the text frame is automatic.
number_of_columnsGets and sets the number of columns of text in the bounding rectangle.

Example

from aspose.cells import Workbook

# Instantiating a Workbook object
workbook = Workbook()
shape = workbook.worksheets[0].shapes.add_rectangle(1, 0, 1, 0, 50, 100)
shapeTextAlignment = shape.text_body.text_alignment

See Also