no_text_rotation property

TextBox.no_text_rotation property

Gets or sets a boolean value indicating either text of the TextBox should not rotate when the shape is rotated.

@property
def no_text_rotation(self) -> bool:
    ...

@no_text_rotation.setter
def no_text_rotation(self, value: bool):
    ...

Remarks

The default value is False

Examples

Shows how to disable text rotation when the shape is rotate.

doc = aw.Document()
builder = aw.DocumentBuilder(doc)

shape = builder.insert_shape(awd.ShapeType.ELLIPSE, 20.0, 20.0)

shape.text_box.no_text_rotation = True

doc.save(ARTIFACTS_DIR + "Shape.NoTextRotation.docx")

See Also