This project has moved and is read-only. For the latest updates, please go here.

TextRotation Range

Mar 21, 2014 at 2:39 PM
Why the range of rotation is max 180?
I read a cell in existing xlsx file, and in this cell the value of TextRotation is 255.
When i try to set this value to another cell I have a range exception
Mar 28, 2014 at 9:44 AM
From the OOXML documentation for the TextRotation attribute (18.8.1)...

textRotation (Text Rotation)
Text rotation in cells. Expressed in degrees. Values range from 0 to 180. The first letter of
the text is considered the center-point of the arc.
For 0 - 90, the value represents degrees above horizon. For 91-180 the degrees below the
horizon is calculated as: