LayoutFlow Enumeration

Determines the flow of the text layout in a textbox.

Namespace:  Aspose.Words.Drawing
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum LayoutFlow
Members
  Member nameValueDescription
Horizontal0 Text is displayed horizontally.
TopToBottomIdeographic1 Ideographic text is displayed vertically.
BottomToTop2 Text is displayed vertically.
TopToBottom3 Text is displayed vertically.
HorizontalIdeographic4 Ideographic text is displayed horizontally.
Vertical5 Text is displayed vertically.
Remarks
Examples
Shows how to add text to a textbox 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.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