Class TextRotation
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेक्स्टरोटेशन
किसी सेल के लिए, टेक्स्ट घुमाने की सेटिंग ऐक्सेस करना.
तरीके
तरीका | रिटर्न टाइप | संक्षिप्त विवरण |
getDegrees() | Integer | स्टैंडर्ड टेक्स्ट ओरिएंटेशन और मौजूदा टेक्स्ट ओरिएंटेशन के बीच का ऐंगल दिखाता है. |
isVertical() | Boolean | अगर टेक्स्ट वर्टिकल तौर पर स्टैक किया गया है, तो true दिखाता है. ऐसा न होने पर, false दिखाता है. |
ज़्यादा जानकारी वाला दस्तावेज़
getDegrees()
स्टैंडर्ड टेक्स्ट ओरिएंटेशन और मौजूदा टेक्स्ट ओरिएंटेशन के बीच का ऐंगल दिखाता है. बाएं से दाएं लिखे जाने वाले टेक्स्ट के लिए, पॉज़िटिव ऐंगल, घड़ी की सुई के उलट दिशा में होते हैं. अगर टेक्स्ट को वर्टिकल तौर पर स्टैक करने के लिए सेट किया गया है, तो यह तरीका 0
दिखाता है.
वापसी का टिकट
Integer
— स्टैंडर्ड टेक्स्ट रोटेशन और मौजूदा टेक्स्ट रोटेशन के बीच डिग्री.
isVertical()
अगर टेक्स्ट वर्टिकल तौर पर स्टैक किया गया है, तो true
दिखाता है. ऐसा न होने पर, false
दिखाता है.
वापसी का टिकट
Boolean
— टेक्स्ट को वर्टिकल तौर पर स्टैक किया गया है या नहीं.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]