Class TextRotation
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Rotación de texto
Accede a la configuración de rotación de texto de una celda.
Métodos
Método | Tipo de datos que se muestra | Descripción breve |
getDegrees() | Integer | Obtiene el ángulo entre la orientación de texto estándar y la orientación de texto actual. |
isVertical() | Boolean | Muestra true si el texto está apilado verticalmente; muestra false en caso contrario. |
Documentación detallada
getDegrees()
Obtiene el ángulo entre la orientación de texto estándar y la orientación de texto actual. Para el texto de izquierda a derecha, los ángulos positivos se encuentran en la dirección contraria a las manecillas del reloj. Si el texto está configurado para apilarse verticalmente, este método muestra 0
.
Volver
Integer
: Son los grados entre la rotación de texto estándar y la rotación de texto actual.
isVertical()
Muestra true
si el texto está apilado verticalmente; muestra false
en caso contrario.
Volver
Boolean
: Indica si el texto se apila verticalmente o no.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003e\u003ccode\u003eTextRotation\u003c/code\u003e allows you to control the rotation settings of text within a cell.\u003c/p\u003e\n"],["\u003cp\u003eYou can access the angle of rotation using \u003ccode\u003egetDegrees()\u003c/code\u003e and check for vertical stacking using \u003ccode\u003eisVertical()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetDegrees()\u003c/code\u003e returns an integer representing the angle, while \u003ccode\u003eisVertical()\u003c/code\u003e returns a boolean indicating vertical or horizontal orientation.\u003c/p\u003e\n"]]],[],null,["# Class TextRotation\n\nTextRotation\n\nAccess the text rotation settings for a cell. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------------------|-------------|------------------------------------------------------------------------------------|\n| [getDegrees()](#getDegrees()) | `Integer` | Gets the angle between standard text orientation and the current text orientation. |\n| [isVertical()](#isVertical()) | `Boolean` | Returns `true` if the text is stacked vertically; returns `false` otherwise. |\n\nDetailed documentation\n----------------------\n\n### `get``Degrees()`\n\nGets the angle between standard text orientation and the current text orientation. For\nleft-to-right text, positive angles are in the counterclockwise direction. If the text is set\nto stack vertically, this method returns `0`.\n\n#### Return\n\n\n`Integer` --- The degrees between standard text rotation and the current text rotation.\n\n*** ** * ** ***\n\n### `is``Vertical()`\n\nReturns `true` if the text is stacked vertically; returns `false` otherwise.\n\n#### Return\n\n\n`Boolean` --- Whether or not the text is stacked vertically."]]