SetAlignment
PowerScript function
Description
Sets the alignment of the selected paragraphs in a RichTextEdit
control.
Applies to
RichTextEdit controls
Syntax
|
1 |
rtename.SetAlignment ( align ) |
|
Argument |
Description |
|---|---|
|
rtename |
The name of the RichTextEdit control in which you want to |
|
align |
A value of the Alignment enumerated datatype specifying
|
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs.
Examples
This example sets the alignment of the selected paragraphs in the
RichTextEdit control rte_1:
|
1 2 |
integer li_success li_success = rte_1.SetAlignment(Right!) |
See also