Skip to content

piRightMargin - DfBaseRichEdit

Determines indentation of right side of control's text, relative to the right margin

Type: Property
Access: Read/Write
Data Type: integer
Parameters: None

Syntax

Property integer piRightMargin
Access Type Syntax
Read Access: Get piRightMargin to integerVariable
Write Access: Set piRightMargin 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.

Sample

This sample increases the right margin of the selected paragraph or paragraphs of control oRichEdit1 by half an inch.

Procedure IncreaseRightMargin
    integer iTwips iCurrentMargin

    // number of twips per inch
    move 1440 to iTwips

    get piRightMargin of oRichEdit1 to iCurrentMargin
    set piRightMargin of oRichEdit1 to (iCurrentMargin + (iTwips * 0.5))
End_Procedure // IncreaseRightMargin