2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

ItemLineAlignment

In a flex layout, this enum is used for the ItemLineAlignment property of the UIListLayout to define the cross-directional alignment of siblings within a line. It is also used for the ItemLineAlignment property of a specific UIFlexItem to define the cross-directional alignment of the parent GuiObject within the line.

Examples of options for ItemLineAlignment in a horizontal
fill direction.

Items

NameValueDescription
Automatic0Aligns the siblings of the UIListLayout or the specific UIFlexItem parent to the layout's HorizontalAlignment or VerticalAlignment, depending on its FillDirection. If HorizontalFlex or VerticalFlex is enabled for the UIListLayout cross‑direction, Stretch will be used for that direction.
Start1Aligns the siblings of the UIListLayout or the specific UIFlexItem parent to the line's top in a horizontal fill or the line's left in a vertical fill.
Center2Aligns the siblings of the UIListLayout or the specific UIFlexItem parent to the line's center in either a horizontal or vertical fill.
End3Aligns the siblings of the UIListLayout or the specific UIFlexItem parent to the line's bottom in a horizontal fill or the line's right in a vertical fill.
Stretch4Stretches the siblings of the UIListLayout or the specific UIFlexItem parent to fill the entire cross‑direction of the line in either a horizontal or vertical fill.

Automatic

Aligns the siblings of the UIListLayout or the specific UIFlexItem parent to the layout's HorizontalAlignment or VerticalAlignment, depending on its FillDirection. If HorizontalFlex or VerticalFlex is enabled for the UIListLayout cross‑direction, Stretch will be used for that direction.

FieldValue
value0

Start

Aligns the siblings of the UIListLayout or the specific UIFlexItem parent to the line's top in a horizontal fill or the line's left in a vertical fill.

FieldValue
value1

Center

Aligns the siblings of the UIListLayout or the specific UIFlexItem parent to the line's center in either a horizontal or vertical fill.

FieldValue
value2

End

Aligns the siblings of the UIListLayout or the specific UIFlexItem parent to the line's bottom in a horizontal fill or the line's right in a vertical fill.

FieldValue
value3

Stretch

Stretches the siblings of the UIListLayout or the specific UIFlexItem parent to fill the entire cross‑direction of the line in either a horizontal or vertical fill.

FieldValue
value4