ui.Panel.setLayout
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इससे पैनल का लेआउट सेट किया जाता है.
यह पैनल दिखाता है.
इस्तेमाल | रिटर्न |
---|
Panel.setLayout(layout) | ui.Panel |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.panel | ui.Panel | ui.Panel इंस्टेंस. |
layout | ui.Panel.Layout | नया लेआउट. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003esetLayout\u003c/code\u003e method is used to define the arrangement of elements within a panel.\u003c/p\u003e\n"],["\u003cp\u003eThis method, when called, returns the \u003ccode\u003eui.Panel\u003c/code\u003e instance itself, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the new layout using a \u003ccode\u003eui.Panel.Layout\u003c/code\u003e object passed as an argument to the \u003ccode\u003esetLayout\u003c/code\u003e method.\u003c/p\u003e\n"]]],["`Panel.setLayout(layout)` modifies the layout of a `ui.Panel` instance. The method takes a `ui.Panel.Layout` object as an argument, which dictates the new arrangement of the panel's contents. This method returns the modified `ui.Panel` instance itself, allowing for method chaining. The `ui.panel` instance is a required argument.\n"],null,["# ui.Panel.setLayout\n\n\u003cbr /\u003e\n\nSets the panel's layout.\n\n\u003cbr /\u003e\n\nReturns this panel.\n\n| Usage | Returns |\n|---------------------------|----------|\n| Panel.setLayout`(layout)` | ui.Panel |\n\n| Argument | Type | Details |\n|------------------|-----------------|------------------------|\n| this: `ui.panel` | ui.Panel | The ui.Panel instance. |\n| `layout` | ui.Panel.Layout | The new layout. |"]]