Rotate Text in Word using C# by following the directions in this article. It provides details to set the IDE for the development, a step-by-step process for the application, and a running sample code demonstrating how to rotate words in Word using C#. You will learn to rotate the text in different directions according to the requirements.
Steps to Flip the Text in Word using C#
- Set the IDE to use Aspose.Words for .NET to change text direction
- Load the Word file into the Document class to flip text in the entire file
- Parse through all the sections of the Word file
- Access the page setup of each section
- Set the TextOrientation property of the PageSetup object
- Save the resultant World file after setting orientation for all the sections
These steps summarize how to rotate Word page using C#. Start the process by loading the Word file, followed by iterating all the sections in the document. Set the Section.PageSetup.TextOrientation property using the TextOrientation enumerator that contains various options for setting the text direction.
Code to Change Text Direction in Word using C#
This code demonstrates how to flip letters in Word using C#. The PageSetup object in each section contains the TextOrientation property including Horizontal, Downward, Upward, HorizontalRotatedFarEast, VerticalFarEast, and VerticalRotatedFarEast. If you are working with tables, use the DocumentBuilder.CellFormat.Orientation property to set the text orientation in each cell.
This article has guided us on how to flip text in Word using C#. If you want to resize a picture, refer to the article on how to resize a picture in Word using C#.