Paragraph.TextAlignment
From Xojo Documentation
Property (As TextAlignments )
aParagraph.TextAlignment = newTextAlignmentsValue
or
TextAlignmentsValue = aParagraph.TextAlignment
New in 2019r2
Supported for all project types and targets.
or
TextAlignmentsValue = aParagraph.TextAlignment
New in 2019r2
Supported for all project types and targets.
Gets the text alignment of the paragraph.
Notes
The values of this property are set using the TextAlignments enumeration.
To set the alignment of a paragraph, call the ParagraphAlignment method of the StyledText class. You can use the Paragraph or the TextField alignment constants to set a paragraph alignment using the ParagraphAlignment method.
Sample Code
This is an example of a right-aligned first paragraph.