Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Enum TextAlignment
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
TextAlignment
टेक्स्ट अलाइनमेंट के टाइप की गिनती.
किसी enum को कॉल करने के लिए, आपको उसकी पैरंट क्लास, नाम, और प्रॉपर्टी को कॉल करना होगा. उदाहरण के लिए,
DocumentApp.TextAlignment.NORMAL.
// Make the first character in the first paragraph of the active tab be
// superscript.
const documentTab =
DocumentApp.getActiveDocument().getActiveTab().asDocumentTab();
const text = documentTab.getBody().getParagraphs()[0].editAsText();
text.setTextAlignment(0, 0, DocumentApp.TextAlignment.SUPERSCRIPT);
प्रॉपर्टी
| प्रॉपर्टी | टाइप | ब्यौरा |
NORMAL | Enum | सामान्य टेक्स्ट अलाइनमेंट. |
SUPERSCRIPT | Enum | सुपरस्क्रिप्ट टेक्स्ट अलाइनमेंट. |
SUBSCRIPT | Enum | सबस्क्रिप्ट टेक्स्ट अलाइनमेंट. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2026-04-13 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2026-04-13 (UTC) को अपडेट किया गया."],[],[]]