Aspose::Words::Drawing::LayoutFlow enum

LayoutFlow enum

Determines the flow of the text layout in a textbox.

enum class LayoutFlow : int

Values

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

Examples

Shows how to add text to a text box, and change its orientation

auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::DocumentBuilder>(doc);

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

textbox->AppendChild<System::SharedPtr<Aspose::Words::Paragraph>>(System::MakeObject<Aspose::Words::Paragraph>(doc));
builder->InsertNode(textbox);

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

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

See Also