TextEdit.TextAlignment

From Xojo Documentation

Property (As TextAlignments )
aTextEdit.TextAlignment = newTextAlignmentsValue
or
TextAlignmentsValue = aTextEdit.TextAlignment

New in 2019r2

Supported for all project types and targets.

Sets the paragraph alignment for entire contents of the control.

Notes

Use the TextAlignments enumeration to get/set the value of this property.

For the TextArea control, use the SelectionAlignment property 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 Initialized event of the control.

Me.TextAlignment = TextAlignments.Center