peAlignment - DfBaseRichEdit
Sets or returns alignment of selected paragraph or paragraphs
Type: Property
Access: Read/Write
Data Type: integer
Parameters: None
Syntax
Property integer peAlignment
| Access Type | Syntax |
|---|---|
| Read Access: | Get peAlignment to integerVariable |
| Write Access: | Set peAlignment to integerVariable/Value |
Description
If any part of a paragraph is selected, this property applies to the entire paragraph. If the cursor is in a paragraph, this property applies to the entire paragraph.
This property has no effect if control is not paged.
Possible values are:
| Constant | Meaning |
|---|---|
| alLeft | Left aligns selected paragraph |
| alRight | Right aligns selected text paragraph |
| alCenter | Center selected paragraph |
Sample
This sample left aligns the paragraph or paragraphs of the currently selected text.
set peAlignment to alLeft
| Col 1 | Col 2 |
|---|---|
| Note: | To use the alXXX constants in your code, you may have to include cRichEdit.pkg in your code (if it is not already included):Use cRichEdit.pkg |