setSelection

abstract fun setSelection(selection: S)

Sets the current selection to selection.

Throws

If selection creates an invalid state.