TextYAlignment (Property)

From Legacy Roblox Wiki
Revision as of 13:53, 22 January 2011 by >Camoy (same changes as TextX)
Jump to navigationJump to search
TextYAlignment
Property Enum TextYAlignment
Description Sets where the text is placed in a GUI on the Y axis.
Member of [[RBX.lua.TextBox, TextButton, TextLabel (Object)|TextBox, TextButton, TextLabel]]
The TextYAlignment Enum controls TextY alignment. It holds 3 values.
Enum Name Description
0 Left The text is set aligned to the left.
1 Right The text is set aligned to the right.
2 Center The text is set aligned to the center.


Example
The resulting label's text will be centered.
Instance.new('TextLabel', script.Parent).TextYAlignment = Enum.TextYAlignment.Center