Class

SetSelectionCommand

Sets the selection on the text.

Source set: Common

Added in 1.11.0-rc01

class SetSelectionCommand(val start: Int, val end: Int) : EditCommand

Sets the selection on the text. When start and end have the same value, it sets the cursor position.

See setSelection).

Parameters

start The inclusive start offset of the selection region.
end The exclusive end offset of the selection region.