Difference between revisions of "TextEdit.TextAlignment"

From Xojo Documentation

 
Line 24: Line 24:
 
Me.TextAlignment = TextAlignments.Center
 
Me.TextAlignment = TextAlignments.Center
 
</rbcode>
 
</rbcode>
 +
 +
[[Category:API 2.0]]

Latest revision as of 13:46, 9 October 2019

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