java.lang.Object
com.aspose.words.LayoutFlow
public class LayoutFlow
- extends java.lang.Object
Utility class containing constants.
Determines the flow of the text layout in a textbox.
Example:
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.TEXT_BOX);
textbox.setWidth(100.0);
textbox.setHeight(100.0);
textbox.getTextBox().setLayoutFlow(LayoutFlow.BOTTOM_TO_TOP);
textbox.appendChild(new Paragraph(doc));
builder.insertNode(textbox);
builder.moveTo(textbox.getFirstParagraph());
builder.write("This text is flipped 90 degrees to the left.");
doc.save(getArtifactsDir() + "Drawing.TextBox.docx");
- See Also:
- TextBox.LayoutFlow
HORIZONTAL = 0 | |
public static final int HORIZONTAL |
-
Text is displayed horizontally.
TOP_TO_BOTTOM_IDEOGRAPHIC = 1 | |
public static final int TOP_TO_BOTTOM_IDEOGRAPHIC |
-
Ideographic text is displayed vertically.
BOTTOM_TO_TOP = 2 | |
public static final int BOTTOM_TO_TOP |
-
Text is displayed vertically.
TOP_TO_BOTTOM = 3 | |
public static final int TOP_TO_BOTTOM |
-
Text is displayed vertically.
HORIZONTAL_IDEOGRAPHIC = 4 | |
public static final int HORIZONTAL_IDEOGRAPHIC |
-
Ideographic text is displayed horizontally.
VERTICAL = 5 | |
public static final int VERTICAL |
-
Text is displayed vertically.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.