IsRichText Function

Class

TextField.

Action

Tests whether a text field supports the rich text methods.

Availability

This function is available only in Windows, providing support for the RichEdit control, and is supported only in scripts that use the Classic Agent.

Syntax

bRich = textfield.IsRichText()
Variable Description
bRich TRUE if the text field supports rich text. BOOLEAN.

Notes

IsRichText returns TRUE if the specified TextField control is a rich edit control. This function can be used to determine whether the RichEdit-specific functions GetFontName, GetFontSize, IsBold, IsItalic, and IsUnderline can be used with a particular TextField.

Example

if(MyDialog.TextField("#3").IsRichText())
//...