IsPreview

Description

Reports whether a RichTextEdit control is in preview mode.

Applies to

RichTextEdit controls

Syntax

rtename.IsPreview ( )

Argument

Description

rtename

The name of the RichTextEdit control for which you want to know whether it is in preview mode


Return value

Boolean.

Returns true if rtename is in preview mode and false if it is in data entry mode.

Examples

This example switches the RichTextEdit control rte_1 to preview mode if it is not already in preview mode and then prints it:

IF NOT rte_1.IsPreview() THEN
    rte_1.Preview(TRUE)
    rte_1.Print(1, "1-4", FALSE, TRUE)
END IF

See also

Preview