Class TextRotation
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
چرخش متن به تنظیمات چرخش متن برای یک سلول دسترسی داشته باشید.
روش ها
روش | نوع برگشت | شرح مختصر |
---|
get Degrees() | Integer | زاویه بین جهت متن استاندارد و جهت متن فعلی را دریافت می کند. |
is Vertical() | Boolean | اگر متن به صورت عمودی انباشته شده باشد، true برمی گرداند. در غیر این صورت false برمی گرداند. |
مستندات دقیق
get Degrees()
زاویه بین جهت متن استاندارد و جهت متن فعلی را دریافت می کند. برای متن از چپ به راست، زوایای مثبت در جهت خلاف جهت عقربههای ساعت هستند. اگر متن روی پشته عمودی تنظیم شده باشد، این روش 0
را برمی گرداند.
بازگشت
Integer
- درجه بین چرخش متن استاندارد و چرخش متن فعلی.
is Vertical()
اگر متن به صورت عمودی انباشته شده باشد، true
برمی گرداند. در غیر این صورت false
برمی گرداند.
بازگشت
Boolean
- اینکه آیا متن به صورت عمودی روی هم چیده شده است یا خیر.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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."]]