piOffsetIndent - DfBaseRichEdit
Sets or returns indentation of 2nd and subsequent lines, relative to first line, of selected paragraph or paragraphs
Type: Property
Access: Read/Write
Data Type: integer
Parameters: None
Syntax
Property integer piOffsetIndent
| Access Type | Syntax |
|---|---|
| Read Access: | Get piOffsetIndent to integerVariable |
| Write Access: | Set piOffsetIndent to integerVariable/Value |
Description
Sets or returns the indentation of second and subsequent lines, relative to the indentation of the first line, of selected paragraph or paragraphs.
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.
piParagraphIndent sets or returns indentation of selected paragraph or paragraphs.
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.
Sample
This sample indents the selected paragraph or paragraphs by 0.5 inches, and then indents the second and subsequent lines of the selected paragraph or paragraphs 0.5 inches less than the indentation of the first line. This results in a paragraph where the first line is indented, but the rest of the paragraph is not.
Procedure DoOffsetIndent
integer iTwipsPerInch iCurrentIndent
// number of twips per inch
move 1440 to iTwipsPerInch
// indent 0.5 inches from current indentation
get piParagraphIndent to iCurrentIndent
set piParagraphIndent to (iCurrentIndent + (iTwipsPerInch * 0.5))
// indent 2nd and subsequent lines 0.5 inches from 1st line
set piOffsetIndent to (iCurrentIndent - (iTwipsPerInch * 0.5))
End_Procedure // DoOffsetIndent