# ui.Panel.setLayout

<br />

Sets the panel's layout.

<br />

Returns this panel.

| Usage | Returns |
|---|---|
| `Panel.setLayout(layout)` | ui.Panel |

| Argument | Type | Details |
|---|---|---|
| this: `ui.panel` | ui.Panel | The ui.Panel instance. |
| `layout` | ui.Panel.Layout | The new layout. |