Skip to main content

RichEditSelection.isTextBoxSelected Property

Gets whether only a text box is selected.


readonly isTextBoxSelected: boolean

Property Value

Type Description

true, if only a text box or its content is selected; otherwise, false.


The property allows you to detect when the selection consists only of a text box or its content.

When a floating text box or its content is selected, the isFloatingObjectSelected property returns true.

if (richEdit.selection.isFloatingObjectSelected)
      if (richEdit.selection.isTextBoxSelected)
          console.log('A text box is selected');
          console.log('A floating picture is selected');

Refer to the following section for more information: Client Selection.

See Also