setBounds

fun setBounds(position: Int, end: Int)(source)

Sets the start and end positions; the length becomes end - position.