TextYAlignment (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
same changes as TextX
>Legend26
No edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{{Property
<onlyinclude>{{Property
|name = TextYAlignment
|name = TextYAlignment
|property = [[Enum]] ''TextYAlignment''
|property = [[TextYAlignment (Enum)|TextYAlignment]] ''TextYAlignment''
|description = Sets where the text is placed in a GUI on the Y axis.
|description = Sets where the text is placed in a GUI on the Y axis.
|object = [[TextBox]], [[TextButton]], [[TextLabel]]
|objects = [[TextBox]], [[TextButton]], [[TextLabel]]
}}</onlyinclude>
}}</onlyinclude>


{{clear floats}}
{{clear floats}}


{{Enum|The TextYAlignment [[Enum]] controls TextY alignment.  It holds 3 values.|
{{Enum/row|0|Left|The text is set aligned to the left.}}
{{Enum/row|1|Right|The text is set aligned to the right.}}
{{Enum/row|2|Center|The text is set aligned to the center.}}
}}
<br />


{{Example|The resulting label's text will be centered.<pre>
{{Example|The resulting label's text will be centered.<pre>

Latest revision as of 22:31, 23 December 2011

TextYAlignment
Property TextYAlignment TextYAlignment
Description Sets where the text is placed in a GUI on the Y axis.
Member of TextBox, TextButton, TextLabel


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