PageSetupTextOrientation Property

Allows to specify TextOrientation for the whole page. Default value is Horizontal

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public TextOrientation TextOrientation { get; set; }

Property Value

Type: TextOrientation
Remarks
This property is only supported for MS Word native formats DOCX, WML, RTF and DOC.
Examples
Shows how to set text orientation.
Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("Hello world!");

// Setting this value will rotate the section's text 90 degrees to the right
PageSetup pageSetup = doc.Sections[0].PageSetup;
pageSetup.TextOrientation = Aspose.Words.TextOrientation.Upward;

doc.Save(ArtifactsDir + "PageSetup.TextOrientation.docx");
See Also