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=doc)
shape = builder.insert_shape(shape_type=aw.drawing.ShapeType.ELLIPSE, width=20, height=20)
shape.text_box.no_text_rotation = True
doc.save(file_name=ARTIFACTS_DIR + 'Shape.NoTextRotation.docx')
See Also
- module aspose.words.drawing
- class TextBox