Text Rotation

I''m trying to rotate text in a cell 45 degrees. Here is my code: IRange range = _CurrentWorksheet.Range["A5:O5"]; range.CellStyle.Rotation = 45; As soon as I hit the line of code setting the rotation to 45 degrees, I get an ArgumentOutOfRangeException: "Specified argument was out of the range of valid values.\r\nParameter name: Indent" Any ideas? Thanks!

2 Replies

BR Brian May 2, 2006 03:59 PM UTC

Ah ha. I just figured it out. Apparently you cannot set it on a range of cells. If I do the cells individually it works!


CP Chella Pandian B Syncfusion Team November 15, 2006 05:29 PM UTC

Thanks

With regards,
Chella


Loader.
Up arrow icon