Open Asterune
TextXAlignment

TextXAlignment

Specifies horizontal text alignment within a GUI instance.

Access items through Enum.TextXAlignment.

Behavior

Enum.TextXAlignment sets horizontal alignment inside a text label or button. It does not change the GUI instance’s position or size.

Items

Items3Value

Left

Aligns text to the left edge.

Right

Aligns text to the right edge.

Center

Centers text horizontally.

Example

Luau
local label = Instance.new("TextLabel")
label.TextXAlignment = Enum.TextXAlignment.Left

TextLabel · TextButton · Frame