LayoutFlow enumeration

LayoutFlow enumeration

Determines the flow of the text layout in a textbox.

Members

NameDescription
HORIZONTALText is displayed horizontally.
TOP_TO_BOTTOM_IDEOGRAPHICIdeographic text is displayed vertically.
BOTTOM_TO_TOPText is displayed vertically.
TOP_TO_BOTTOMText is displayed vertically.
HORIZONTAL_IDEOGRAPHICIdeographic text is displayed horizontally.
VERTICALText is displayed vertically.

Examples

Shows how to add text to a text box, and change its orientation

doc = aw.Document()
builder = aw.DocumentBuilder(doc)
textbox = aw.drawing.Shape(doc, aw.drawing.ShapeType.TEXT_BOX)
textbox.width = 100
textbox.height = 100
textbox.text_box.layout_flow = aw.drawing.LayoutFlow.BOTTOM_TO_TOP
textbox.append_child(aw.Paragraph(doc))
builder.insert_node(textbox)
builder.move_to(textbox.first_paragraph)
builder.write('This text is flipped 90 degrees to the left.')
doc.save(file_name=ARTIFACTS_DIR + 'Drawing.TextBox.docx')

See Also