LayoutFlow

LayoutFlow enumeration

Bestämmer flödet för textlayouten i en textruta.

public enum LayoutFlow

Värderingar

namnVärdeBeskrivning
Horizontal0Texten visas horisontellt.
TopToBottomIdeographic1Ideografisk text visas vertikalt.
BottomToTop2Texten visas vertikalt.
TopToBottom3Texten visas vertikalt.
HorizontalIdeographic4Ideografisk text visas horisontellt.
Vertical5Texten visas vertikalt.

Exempel

Visar hur man lägger till text i en textruta och ändrar dess orientering

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape textbox = new Shape(doc, ShapeType.TextBox)
{
    Width = 100,
    Height = 100
};
textbox.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");

Se även