TextArea.SelAlignment
From Xojo Documentation
This item was deprecated in version 2019r2. Please use TextArea.SelectionAlignment as a replacement. |
Property (As Integer )
aTextArea.SelAlignment = newIntegerValue
or
IntegerValue = aTextArea.SelAlignment
Supported for all project types and targets.
or
IntegerValue = aTextArea.SelAlignment
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. |
0 | AlignDefault | Default alignment. Currently, this is the same as left alignment. |
1 | AlignLeft | Left aligned. |
2 | AlignCenter | Centered. |
3 | AlignRight | Right aligned. |
Examples
This example sets the alignment of the selected paragraph in TextArea1 to centered:
TextArea1.SelAlignment = TextArea.AlignCenter
This example displays a dialog box if the selected paragraph is centered.