SetSelectionCommand


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

See setSelection.

Summary

Public constructors

SetSelectionCommand(start: Int, end: Int)
Cmn

Public functions

open Unit

Apply the command on the editing buffer.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Int

The exclusive end offset of the selection region.

Cmn
Int

The inclusive start offset of the selection region.

Cmn

Public constructors

SetSelectionCommand

SetSelectionCommand(start: Int, end: Int)
Parameters
start: Int

The inclusive start offset of the selection region.

end: Int

The exclusive end offset of the selection region.

Public functions

applyTo

open fun applyTo(buffer: EditingBuffer): Unit

Apply the command on the editing buffer.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

end

val endInt

The exclusive end offset of the selection region.

start

val startInt

The inclusive start offset of the selection region.