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.
Unfortunately, activation email could not send to your email. Please try again.

Text Orientation?

Thread ID:





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

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 12:24 AM

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.

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.