setBounds

fun setBounds(position: Int, end: Int)

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