We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Text Orientation?

Thread ID:





55271 Jan 25,2007 11:59 PM UTC Jan 26,2007 05:24 AM UTC ASP.NET Web Forms (Classic) 1
Tags: XlsIO
Asked On January 25, 2007 11:59 PM UTC

Is there a way to change the orientation of text within a cell? In other words, can I insert text into a cell that's slanted?

If you go into an excel spreadsheet, right-click on a cell, select "Format Cells", and then the "Alignment" tab, you'll notice there's an Orientation field that allows you to slant your text.

Can this be done in XlsIo?



Melba Winshia [Syncfusion]
Replied On January 26, 2007 05:24 AM UTC

Hi Ryan,

You can set the orientation (rotation) of the text inside the cell by using the Rotation property of the CellStyle object. Please refer the following code snippet that illustrates the above:

//Text Orientation Setting
sheet.Range["A1"].CellStyle.Rotation = 60;
sheet.Range["A2"].CellStyle.Rotation = 90;

Please refer the following sample which implements the above said feature:


Please take a look and let me know if you have any other questions.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon