peLineSpacingType - DfBaseRichEdit
Determines type of line spacing of selected paragraph or paragraphs
Type: Property
Access: Read/Write
Data Type: integer
Parameters: None
Syntax
Property integer peLineSpacingType
| Access Type | Syntax |
|---|---|
| Read Access: | Get peLineSpacingType to integerVariable |
| Write Access: | Set peLineSpacingType 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.
peLineSpacingType sets line spacing to a predefined spacing, such as single or double. You can use piLineSpacing to to a specific number of twips.
Possible values are:
| Constant | Meaning |
|---|---|
| lstSingle | Line spacing = 1 line |
| lstSingleAndOneHalf | Line spacing = 1.5 lines |
| lstDouble | Line spacing = 2 lines |
Sample
This sample sets the line spacing of the selected paragraph or paragraphs to single spacing.
set peLineSpacingType to lstSingle
Sample
This sample retrieves the line spacing of the selected paragraph or paragraphs to variable eLineSpacingType and then displays a message to the user showing them what the current line spacing is.
Procedure DetermineLineSpacing
integer eLineSpacingType
get peLineSpacingType to eLineSpacingType
if (eLineSpacingType = lstSingle) ;
send Info_Box "Line spacing is 1 line" "Line spacing"
else if (eLineSpacingType = lstSingleAndOneHalf);
send Info_Box "Line spacing is 1.5 lines" "Line spacing"
else if (eLineSpacingType = lstDouble) ;
send Info_Box "Line spacing is 2 lines" "Line spacing"
End_Procedure // DetermineLineSpacing
| Col 1 | Col 2 |
|---|---|
| Note: | To use the lstXXX constants in your code, you may have to include cRichEdit.pkg in your code (if it is not already included):Use cRichEdit.pkg |