Aspose::Words::Drawing::LayoutFlow enum

LayoutFlow enum

Determines the flow of the text layout in a textbox.

enum class 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

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);

auto textbox = MakeObject<Shape>(doc, ShapeType::TextBox);
textbox->set_Width(100);
textbox->set_Height(100);
textbox->get_TextBox()->set_LayoutFlow(LayoutFlow::BottomToTop);

textbox->AppendChild(MakeObject<Paragraph>(doc));
builder->InsertNode(textbox);

builder->MoveTo(textbox->get_FirstParagraph());
builder->Write(u"This text is flipped 90 degrees to the left.");

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

See Also