> For the complete documentation index, see [llms.txt](https://docs.wisej.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/docs/controls/containers/flowlayoutpanel.md).

# FlowLayoutPanel

The `FlowLayoutPanel` control arranges its contents in a horizontal or vertical flow direction. You can wrap the control's contents from one row to the next, or from one column to the next. Alternatively, you can clip instead of wrap its contents.

You can specify the flow direction by setting the `FlowDirection` property. The `FlowLayoutPanel` control correctly reverses its flow direction in Right-to-Left (RTL) layouts. You can also specify whether the contents are wrapped or clipped by setting the `WrapContents` property.

The `FlowLayoutPanel` control automatically sizes to its contents when you set the `AutoSize` property to `true`. It also provides a `FlowBreak` property to its child controls. Setting the `FlowBreak` property to `true` causes the control to stop laying out controls in the current flow direction and wrap to the next row or column.

Any Wisej.NET control can be a child of the `FlowLayoutPanel` control, including other `FlowLayoutPanel` instances. This enables construction of sophisticated layouts that adapt to your form's dimensions at runtime.

{% hint style="info" %}
For a full list of properties, methods and events see the [API documentation.](http://docs.wisej.com/api)
{% endhint %}

## Features

### AutoSize

When enabled, the `FlowLayoutPanel` control resizes itself to fit its contents according to the `AutoSizeMode` property specified.

{% content-ref url="/pages/mursD6ihgBT546ue8poi" %}
[Layouts](/docs/concepts/layouts.md)
{% endcontent-ref %}

### Flow Direction

The `FlowLayoutPanel` control supports multiple layout directions for its children using the `FlowDirection` property. Available options are `LeftToRight`, `TopDown`, `RightToLeft`, and `BottomUp`. The default layout direction is `LeftToRight`.

![FlowLayoutPanel demonstrating different flow direction options](/files/Q60YKxjlF24CVXDYvqrU)

## Advanced

### JavaScript Widget

| Item                | Description                                                                                                                                                                                                                                                          |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Class name          | "wisej.web.Panel"                                                                                                                                                                                                                                                    |
| Theme appearance    | "panel", see [Themes](https://docs.wisej.com/theme-builder/theme-elements/elements).                                                                                                                                                                                 |
| Child components    | "pane" is the container. "captionbar" is the header. "title" is the title of the panel. "icon" is the icon of the panel, if applicable. "close-button" is the close button of the panel, if applicable. See [JavaScript](/docs/concepts/javascript-object-model.md). |
| Toolcontainer state | "panel", see [Embedded Tools](/docs/controls/general/embedded-tools.md).                                                                                                                                                                                             |
| Source code         | [https://github.com/iceteagroup/wisej-js](https://github.com/iceteagroup/wisej-js/blob/master/wisej.web.TextBox.js)                                                                                                                                                  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wisej.com/docs/controls/containers/flowlayoutpanel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
