Reports whether a RichTextEdit control is in preview mode.
RichTextEdit controls
rtename.IsPreview ( )
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control for which you want to know whether it is in preview mode |
Boolean. Returns true if rtename is in preview mode and false if it is in data entry mode.
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