LayoutFlow enumeration

Determines the flow of the text layout in a textbox.

public enum LayoutFlow


Name Value Description
Horizontal 0 Text is displayed horizontally.
TopToBottomIdeographic 1 Ideographic text is displayed vertically.
BottomToTop 2 Text is displayed vertically.
TopToBottom 3 Text is displayed vertically.
HorizontalIdeographic 4 Ideographic text is displayed horizontally.
Vertical 5 Text is displayed vertically.


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

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape textbox = new Shape(doc, ShapeType.TextBox)
    Width = 100, 
    Height = 100,
    TextBox = { LayoutFlow = LayoutFlow.BottomToTop }

textbox.AppendChild(new Paragraph(doc));

builder.Write("This text is flipped 90 degrees to the left.");

doc.Save(ArtifactsDir + "Drawing.TextBox.docx");

See Also