SetAlignment – PB Docs 2017

SetAlignment

PowerScript function

Description

Sets the alignment of the selected paragraphs in a RichTextEdit
control.

Applies to

RichTextEdit controls

Syntax

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:

  • Left! — Align each line at the left margin

  • Right! — Align each line at the right margin

  • Center! — Center the text between the left and right
    margins

  • Justify! — Justify the paragraphs

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:

See also

GetAlignment

GetSpacing

GetTextStyle

SetSpacing

SetTextStyle


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x