TextXAlignment (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Pauljkl
No edit summary
>Legend26
No edit summary
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Property|
<onlyinclude>{{Property
name = TextXAlignment
|name = TextXAlignment
|property = [[Enum]] ''TextXAlignment''
|property = [[TextXAlignment (Enum)|TextXAlignment]] ''TextXAlignment''
|description = Sets where the text is placed in a GUI on the X axis
|description = Sets where the text is placed in a GUI on the X axis.
|object = [[RBX.lua.TextButton (Object)|TextButton]], [[RBX.lua.TextBox (Object)|TextBox]], [[RBX.lua.TextLabel (Object)|TextLabel]]
|objects = [[TextBox]], [[TextButton]], [[TextLabel]]
|}}
}}</onlyinclude>


{{clear floats}}




{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 1px solid #f00;"
{{Example|The resulting label's text will be centered.<pre>
|-
Instance.new('TextLabel', script.Parent).TextXAlignment = Enum.TextXAlignment.Center
| bgcolor="#AB5454"|<span style="color:white">'''Enum'''</span>
</pre>}}
| bgcolor="#AB5454"|<span style="color:white">'''Name'''</span>
 
| bgcolor="#AB5454"|<span style="color:white">'''Description'''</span>
[[Category:Properties]]
|-
|+ <big>The TextXAlignment [[Enum]] set only has three numbers.</big>
|0
|Left
|The text is set on the left
|-
|1
|Right
|The text is set on the right
|-
|2
|Center
|The text is set in the centre
|}

Latest revision as of 22:31, 23 December 2011

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


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