ui.SplitPanel.setOrientation
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
กำหนดการวางแนวของแผง ซึ่งเป็น "แนวนอน" หรือ "แนวตั้ง"
แสดงผลแผงที่แยกนี้
การใช้งาน | การคืนสินค้า |
---|
SplitPanel.setOrientation(orientation) | ui.SplitPanel |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.splitpanel | ui.SplitPanel | อินสแตนซ์ ui.SplitPanel |
orientation | สตริง | การวางแนวใหม่ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 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. |"]]