LayoutFlow
Inhalt
[
Ausblenden
]LayoutFlow enumeration
Bestimmt den Fluss des Textlayouts in einem Textfeld.
public enum LayoutFlow
Werte
| Name | Wert | Beschreibung |
|---|---|---|
| Horizontal | 0 | Text wird horizontal angezeigt. |
| TopToBottomIdeographic | 1 | Ideografischer Text wird vertikal angezeigt. |
| BottomToTop | 2 | Text wird vertikal angezeigt. |
| TopToBottom | 3 | Text wird vertikal angezeigt. |
| HorizontalIdeographic | 4 | Ideografischer Text wird horizontal angezeigt. |
| Vertical | 5 | Text wird vertikal angezeigt. |
Beispiele
Zeigt, wie man Text zu einem Textfeld hinzufügt und seine Ausrichtung ändert
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");
Siehe auch
- property LayoutFlow
- namensraum Aspose.Words.Drawing
- Montage Aspose.Words