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:

Created:

Updated:

Platform:

Replies:

55271 Jan 25,2007 06:59 PM Jan 26,2007 12:24 AM ASP.NET Web Forms (Classic) 1
loading
Tags: XlsIO
Ryan
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?

Thanks.

-ryan

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:

[C#]
//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:

Orientation.zip

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

Best Regards,
Melba

CONFIRMATION

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.

;