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.
Applies to
RichTextEdit controls
Syntax
1 |
rtecontrol.SetParagraphSetting ( whichsetting, value ) |
Argument |
Description |
---|---|
rtecontrol |
The name of the control for which you want paragraph |
whichsetting |
A value of the ParagraphSetting enumerated datatype
|
value |
A long whose value is the width of the margin or indent in |
Return value
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) |
See also