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