Class TextRotation
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텍스트회전
셀의 텍스트 회전 설정에 액세스합니다.
메서드
메서드 | 반환 유형 | 간략한 설명 |
getDegrees() | Integer | 표준 텍스트 방향과 현재 텍스트 방향 간의 각도를 가져옵니다. |
isVertical() | Boolean | 텍스트가 세로로 쌓인 경우 true 를 반환하고, 그렇지 않으면 false 를 반환합니다. |
자세한 문서
getDegrees()
표준 텍스트 방향과 현재 텍스트 방향 간의 각도를 가져옵니다. 왼쪽에서 오른쪽으로 읽는 텍스트의 경우 양수 각도는 시계 반대 방향입니다. 텍스트가 세로로 쌓이도록 설정된 경우 이 메서드는 0
를 반환합니다.
리턴
Integer
: 표준 텍스트 회전과 현재 텍스트 회전 간의 각도입니다.
isVertical()
텍스트가 세로로 쌓인 경우 true
를 반환하고, 그렇지 않으면 false
를 반환합니다.
리턴
Boolean
: 텍스트가 세로로 쌓이는지 여부입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 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."]]