TextEdit.TextAlignment

From Xojo Documentation

Revision as of 13:46, 9 October 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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