Skip to main content

RichEditSelection.isTextBoxSelected Property

Gets whether only a text box is selected.

Declaration

get isTextBoxSelected(): boolean

Property Value

Type Description
boolean

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

Remarks

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');
      else
          console.log('A floating picture is selected');

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

See Also