Skip to main content

RichEditSelection.collapsed Property

Specifies whether the current selection is collapsed (the cursor position).

Declaration

get collapsed(): boolean
set collapsed(value: boolean)

Property Value

Type Description
boolean

true if the selection is collapsed; otherwise, false.

Remarks

The intervals property stores the selected interval(s). Use the collapsed property to specify whether the type of the selected interval is collapsed.

richEdit.selection.collapsed = true;

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

See Also