DeleteSurroundingTextCommand


Delete lengthBeforeCursor characters of text before the current cursor position, and delete lengthAfterCursor characters of text after the current cursor position, excluding the selection.

Before and after refer to the order of the characters in the string, not to their visual representation.

See deleteSurroundingText.

Summary

Public constructors

DeleteSurroundingTextCommand(
    lengthBeforeCursor: Int,
    lengthAfterCursor: 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 number of characters in UTF-16 after the cursor to be deleted.

Cmn
Int

The number of characters in UTF-16 before the cursor to be deleted.

Cmn

Public constructors

DeleteSurroundingTextCommand

DeleteSurroundingTextCommand(
    lengthBeforeCursor: Int,
    lengthAfterCursor: Int
)
Parameters
lengthBeforeCursor: Int

The number of characters in UTF-16 before the cursor to be deleted. Must be non-negative.

lengthAfterCursor: Int

The number of characters in UTF-16 after the cursor to be deleted. Must be non-negative.

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

lengthAfterCursor

val lengthAfterCursorInt

The number of characters in UTF-16 after the cursor to be deleted. Must be non-negative.

lengthBeforeCursor

val lengthBeforeCursorInt

The number of characters in UTF-16 before the cursor to be deleted. Must be non-negative.