Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SetParagraphSetting – PB Docs 2022 – PowerBuilder Library

SetParagraphSetting – PB Docs 2022

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

Argument

Description

rtecontrol

The name of the control for which you want paragraph
information.

whichsetting

A value of the ParagraphSetting enumerated datatype
specifying the setting you want to change. Values are:

  • Indent! — Returns the indentation of the
    paragraph

  • LeftMargin! — Returns the left margin of the
    paragraph

  • RightMargin! — Returns the right margin of the
    paragraph

value

A long whose value is the width of the margin or indent in
units of 1000ths of an inch. For example, a value of 500
specifies a width of half an inch.

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:

This example sets the left margin for the current paragraph to an
inch:

See also

GetParagraphSetting

SetAlignment

SetSpacing

SetTextColor

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