TextYAlignment (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy same changes as TextX |
>Mattchewy Fixing multiple objects |
||
Line 3: | Line 3: | ||
|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. | ||
| | |objects = [[TextBox]], [[TextButton]], [[TextLabel]] | ||
}}</onlyinclude> | }}</onlyinclude> | ||
Revision as of 02:40, 23 January 2011
![]() | |
Property | Enum TextYAlignment |
Description | Sets where the text is placed in a GUI on the Y axis. |
Member of | 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