delete

fun delete(fromIndex: Int, toIndex: Int): Pair<Int, Int>?

Deletes the text in the given range.