TextArea.SelectionAlignment
From Xojo Documentation
Property (As TextAlignments )
aTextArea.SelectionAlignment = newTextAlignmentsValue
or
TextAlignmentsValue = aTextArea.SelectionAlignment
New in 2019r2
Supported for all project types and targets.
or
TextAlignmentsValue = aTextArea.SelectionAlignment
New in 2019r2
Supported for all project types and targets.
Controls paragraph alignment of the selected text.
Class Constants
The class constants and values are:
Value | Constant | Description |
---|---|---|
-1 | None | Mixed - The selection spans multiple paragraphs with different alignments.
NotesUse TextAlignments with this property. ExamplesThis example sets the alignment of the selected paragraph in TextArea1 to centered: TextArea1.SelectionAlignment = TextAlignments.Center
This example displays a dialog box if the selected paragraph is centered. |