LayoutFlow

LayoutFlow enumeration

Determines the flow of the text layout in a textbox.

public enum LayoutFlow

Values

NameValueDescription
Horizontal0Text is displayed horizontally.
TopToBottomIdeographic1Ideographic text is displayed vertically.
BottomToTop2Text is displayed vertically.
TopToBottom3Text is displayed vertically.
HorizontalIdeographic4Ideographic text is displayed horizontally.
Vertical5Text is displayed vertically.

Examples

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.TextBox.LayoutFlow = LayoutFlow.BottomToTop;

textbox.AppendChild(new Paragraph(doc));
builder.InsertNode(textbox);

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

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

See Also