SetSpacing

Description

Sets the line spacing for the selected paragraphs or the paragraph containing the insertion point in a RichTextEdit control.

Applies to

RichTextEdit controls

Syntax

rtename.SetSpacing ( spacing )

Argument

Description

rtename

The name of the RichTextEdit control in which you want to set the line spacing.

spacing

A value of the Spacing enumerated datatype specifying the line spacing for the text. Values are:

Spacing1! -- Single spacing

Spacing15! -- One and a half line spacing

Spacing2! -- Double spacing


Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, SetSheetID returns null.

Usage

If no sheet identifier was set when it was opened by one of the OpenSheet functions, you can set an ID using the SetSheetID function. You can also change a sheet's ID.

Examples

window win[]
OpenSheetDocked(win[1], this, WindowDockLeft!, "")
win[1].SetSheetID("sheet1")