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
Syntaxpublic TextOrientation TextOrientation { get; set; }
Public Property TextOrientation As TextOrientation
Get
Set
public:
property TextOrientation TextOrientation {
TextOrientation get ();
void set (TextOrientation value);
}
member TextOrientation : TextOrientation with get, set
Property Value
Type:
TextOrientation
RemarksThis property is only supported for MS Word native formats DOCX, WML, RTF and DOC.
ExamplesShows how to set text orientation.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("Hello world!");
PageSetup pageSetup = doc.Sections[0].PageSetup;
pageSetup.TextOrientation = Aspose.Words.TextOrientation.Upward;
doc.Save(ArtifactsDir + "PageSetup.TextOrientation.docx");
See Also