Determines the flow of the text layout in a textbox.
Namespace:
Aspose.Words.Drawing
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
SyntaxPublic Enumeration LayoutFlow
public enum class LayoutFlow
Members
| Member 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.
|
Remarks
ExamplesShows 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