Class TextRotation
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
內容詳盡的說明文件
getDegrees()
取得標準文字方向與目前文字方向之間的角度。對於從左到右的文字,正角度為逆時針方向。如果文字設為垂直堆疊,此方法會傳回 0
。
回攻員
Integer
:標準文字旋轉角度與目前文字旋轉角度之間的差異。
isVertical()
如果文字是垂直堆疊,則會傳回 true
;否則傳回 false
。
回攻員
Boolean
:文字是否以垂直方式堆疊。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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."]]