piLineSpacing - DfBaseRichEdit
Determines exact line spacing of selected paragraph or paragraphs
Type: Property
Access: Read/Write
Data Type: integer
Parameters: None
Syntax
Property integer piLineSpacing
| Access Type | Syntax |
|---|---|
| Read Access: | Get piLineSpacing to integerVariable |
| Write Access: | Set piLineSpacing 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 uses twips, which are 1/1440 of an inch, or 1/20 of a printer's point.
This property has no effect if control is not paged.
piLineSpacing sets line spacing to a specific number of twips. You can use peLineSpacingType to set line spacing to a predefined spacing, such as single or double.
Sample
This sample determines the current line spacing of the selected paragraph or paragraphs.
Procedure DetermineLineSpacing
integer iTwips
get piLineSpacing to iTwips
send Info_Box (string(iTwips) + " twips") "Current Line Spacing"
End_Procedure // DetermineLineSpacing
Sample
This sample set the line spacing of the selected paragraph or paragraphs to 12 printer's points.
Procedure SetLineSpacing
integer iPoints
move 20 to iPoints
set piLineSpacing to (iPoints * 12)
End_Procedure // SetLineSpacing