ui.SplitPanel.setOrientation
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
جهت پانل را تنظیم می کند. یکی از "افقی" یا "عمودی".
این پانل تقسیم شده را برمی گرداند.
استفاده | برمی گرداند | 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 و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]