textAlign

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the textAlign [of <line>] of {<button> | <field>} to {left | center | right}
Associationsfield, button
Summary

Specifies how text is aligned or justified in a field or button.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the textAlign of field "myField" to center
set the textAlign of line 1 of field "myField" to right
RelatedKeyword: field, button
Property: borderWidth, vgrid, acceleratorText, dontWrap, formattedText, spaceAbove, backgroundColor, margins, listBehavior, hidden, textSize, firstIndent, tabstops, spaceBelow, listStyle, rightIndent, listDepth, hgrid, printTextAlign, hScrollbar, borderColor, formattedWidth
Object: button
Glossary: property
Description

Use the textAlign property to change the alignment of individual lines of text in a field, the whole field or buttons.

By default, the textAlign of newly created fields and buttons is "left".

Tagsui