Class TextRotation Stay organized with collections Save and categorize content based on your preferences.
Page Summary
The
TextRotationclass allows access to text rotation settings for a cell.You can get the rotation angle in degrees using the
getDegrees()method.The
isVertical()method checks if the text is stacked vertically.
Access the text rotation settings for a cell.
Methods
| Method | Return type | Brief description |
|---|---|---|
get | Integer | Gets the angle between standard text orientation and the current text orientation. |
is | Boolean | Returnstrue if the text is stacked vertically; returnsfalse otherwise. |
Detailed documentation
getDegrees()
Gets the angle between standard text orientation and the current text orientation. Forleft-to-right text, positive angles are in the counterclockwise direction. If the text is setto stack vertically, this method returns0.
Return
Integer — The degrees between standard text rotation and the current text rotation.
isVertical()
Returnstrue if the text is stacked vertically; returnsfalse otherwise.
Return
Boolean — Whether or not the text is stacked vertically.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.