TextBoxVerticalAnchor Property
Specifies the vertical alignment of the text within a shape.

Namespace: Aspose.Words.Drawing
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.8
Syntax
public TextBoxAnchor VerticalAnchor { get; set; }

Property Value

Type: TextBoxAnchor
Remarks

The default value is Top.

Examples
Shows how to change text position inside textbox shape.
[C#]

Document doc = new Document(MyDir + "Shape.GetTextBoxAndChangeAnchor.docx");
NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);

Shape textbox = (Shape) shapes[0];
textbox.TextBox.VerticalAnchor = TextBoxAnchor.Bottom;

doc.Save(ArtifactsDir + "Shape.GetTextBoxAndChangeAnchor.docx");
See Also