ui.SplitPanel.setOrientation
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इससे पैनल का ओरिएंटेशन सेट होता है. इसकी वैल्यू "horizontal" या "vertical" में से कोई एक होती है.
यह स्प्लिट पैनल दिखाता है.
इस्तेमाल | रिटर्न |
---|
SplitPanel.setOrientation(orientation) | ui.SplitPanel |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.splitpanel | ui.SplitPanel | ui.SplitPanel इंस्टेंस. |
orientation | स्ट्रिंग | नया ओरिएंटेशन. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003eThe \u003ccode\u003esetOrientation\u003c/code\u003e method allows you to control the layout of a SplitPanel, arranging its elements either horizontally or vertically.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eSplitPanel.setOrientation(orientation)\u003c/code\u003e returns the modified ui.SplitPanel object, enabling method chaining in your code.\u003c/p\u003e\n"],["\u003cp\u003eThis method requires a SplitPanel instance and a string argument representing the desired orientation ("horizontal" or "vertical").\u003c/p\u003e\n"]]],[],null,["# ui.SplitPanel.setOrientation\n\n\u003cbr /\u003e\n\nSets the panel's orientation; one of \"horizontal\" or \"vertical\".\n\n\u003cbr /\u003e\n\nReturns this split panel.\n\n| Usage | Returns |\n|------------------------------------------|---------------|\n| SplitPanel.setOrientation`(orientation)` | ui.SplitPanel |\n\n| Argument | Type | Details |\n|-----------------------|---------------|-----------------------------|\n| this: `ui.splitpanel` | ui.SplitPanel | The ui.SplitPanel instance. |\n| `orientation` | String | The new orientation. |"]]