TextYAlignment (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Pauljkl New page: {{Property| name = TextYAlignment |property = Enum ''TextYAlignment'' |description = Sets where the text is placed in a GUI on the Y axis |object = [[RBX.lua.TextButton (Object)|TextBu... |
>Camoy same changes as TextX |
||
Line 1: | Line 1: | ||
{{Property| | <onlyinclude>{{Property | ||
name = TextYAlignment | |name = TextYAlignment | ||
|property = [[Enum]] ''TextYAlignment'' | |property = [[Enum]] ''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 = [[ | |object = [[TextBox]], [[TextButton]], [[TextLabel]] | ||
}}</onlyinclude> | |||
{{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> | |||
| | Instance.new('TextLabel', script.Parent).TextYAlignment = Enum.TextYAlignment.Center | ||
</pre>}} | |||
[[Category:Properties]] | |||
Revision as of 13:53, 22 January 2011
![]() | |
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]] |
![]() | ||
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