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.10.0

ExpandedSyntax

public TextOrientation TextOrientation { get; set; }

Property Value

Type: TextOrientation

ExpandedRemarks

This property is only supported for MS Word native formats DOCX, WML, RTF and DOC.

ExpandedExamples

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 = TextOrientation.Upward;

doc.Save(ArtifactsDir + "PageSetup.SectionTextOrientation.docx");

ExpandedSee Also