From Xojo Documentation

Revision as of 13:44, 20 August 2020 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As TextAlignments )
aTextArea.SelectionAlignment = newTextAlignmentsValue
TextAlignmentsValue = aTextArea.SelectionAlignment

New in 2019r2

Supported for all project types and targets.

Controls paragraph alignment of the selected text.


Use TextAlignments with this property.


This example sets the alignment of the selected paragraph in TextArea1 to centered:

TextArea1.SelectionAlignment = TextAlignments.Center

This example displays a dialog box if the selected paragraph is centered.

If TextArea1.SelectionAlignment = TextAlignments.Center then
MessageBox("The text is centered.")
End If

See Also

TextAlignments enumeration.