Class TextRotation
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Rotation du texte
Accéder aux paramètres de rotation du texte d'une cellule.
Méthodes
Méthode | Type renvoyé | Brève description |
getDegrees() | Integer | Récupère l'angle entre l'orientation du texte standard et l'orientation du texte actuelle. |
isVertical() | Boolean | Renvoie true si le texte est empilé verticalement, sinon false . |
Documentation détaillée
getDegrees()
Récupère l'angle entre l'orientation du texte standard et l'orientation du texte actuelle. Pour le texte de gauche à droite, les angles positifs sont dans le sens antihoraire. Si le texte est défini pour être empilé verticalement, cette méthode renvoie 0
.
Renvois
Integer
: degrés entre la rotation de texte standard et la rotation de texte actuelle.
isVertical()
Renvoie true
si le texte est empilé verticalement, sinon false
.
Renvois
Boolean
: indique si le texte est empilé verticalement ou non.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 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."]]