Class TextRotation

  • The TextRotation class 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.

TextRotation

Access the text rotation settings for a cell.

Methods

MethodReturn typeBrief description
getDegrees() IntegerGets the angle between standard text orientation and the current text orientation.
isVertical() BooleanReturns true if the text is stacked vertically; returns false otherwise.

Detailed documentation

getDegrees()

Gets the angle between standard text orientation and the current text orientation. For left-to-right text, positive angles are in the counterclockwise direction. If the text is set to stack vertically, this method returns 0.

Return

Integer — The degrees between standard text rotation and the current text rotation.


isVertical()

Returns true if the text is stacked vertically; returns false otherwise.

Return

Boolean — Whether or not the text is stacked vertically.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年12月02日 UTC.