TextInput.selectSlice

Select a part of text. This is preferred to setting selectionStart & selectionEnd directly, since the two properties are synchronized together and a change might be ignored.

class TextInput
void
selectSlice
(
size_t start
,
size_t end
)
in (end <= value.length, format!"Slice [%s .. %s] exceeds textInput value length of %s"(start, end, value.length))

Meta