# FlexDirection

> Defines the main-axis of the flex layout.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public enum FlexDirection
```

## Fields

| Value                                                                                                  | Description    |
| ------------------------------------------------------------------------------------------------------ | -------------- |
| [Column](/engine/6000.7/script-reference/unityengine/uielements/flexdirection/column.md)               | Top to Bottom. |
| [ColumnReverse](/engine/6000.7/script-reference/unityengine/uielements/flexdirection/columnreverse.md) | Bottom to Top. |
| [Row](/engine/6000.7/script-reference/unityengine/uielements/flexdirection/row.md)                     | Left to Right. |
| [RowReverse](/engine/6000.7/script-reference/unityengine/uielements/flexdirection/rowreverse.md)       | Right to Left. |
