SetParagraphSetting PowerScript function
Description
Sets the size of the indentation, left margin, or right margin
of the paragraph containing the insertion point in a RichTextEdit
control.
Controls
RichTextEdit controls
Syntax
1 |
<span>rtecontrol</span>.<span>SetParagraphSetting</span> ( <span>whichsetting</span>, <span>value</span> ) |
Argument |
Description |
---|---|
rtecontrol |
The name of the control for which you |
whichsetting |
A value of the ParagraphSetting enumerated
|
value |
A long whose value is the width of the |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs. If any argument is null, it
returns null.
Usage
Each paragraph has indentation, left margin, and right margin
settings. To set all three for the current paragraph, call SetParagraphSetting
three times.
Examples
This example sets the indentation setting for the
current paragraph to a quarter inch:
1 |
ll_indent = rte_1.SetParagraphSetting(Indent!, 250) |
This example sets the left margin for the current
paragraph to an inch:
1 |
rte_1.SetParagraphSetting(LeftMargin!, 1000) |