Class TextRotation

  • TextRotation allows you to control the rotation settings of text within a cell.

  • You can access the angle of rotation using getDegrees() and check for vertical stacking using isVertical().

  • getDegrees() returns an integer representing the angle, while isVertical() returns a boolean indicating vertical or horizontal orientation.

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.