TextEdit.Alignment

From Xojo Documentation

Property (As Integer )
aTextEdit.Alignment = newIntegerValue
or
IntegerValue = aTextEdit.Alignment

Supported for all project types and targets.

Sets the paragraph alignment for entire contents of the control.

Notes

You can use either the integer values or the class constants, AlignDefault, AlignLeft, AlignCenter, or AlignRight, to set or get the alignment:

Class Constant Description
AlignDefault Default alignment
AlignLeft Left aligned
AlignCenter Centered
AlignRight Right aligned

Use SelAlignment to set paragraph alignments for individual paragraphs. Currently the Default alignment is the same as Left aligned. Setting the alignment on Linux requires GTK+ 2.4 or greater.

Example

This example is in the Open event of the control.

Me.Alignment = TextArea.AlignCenter