This version of Unity is unsupported.

TextField.SelectRange

public void SelectRange(int rangeCursorIndex, int selectionIndex);

Parameters

cursorIndexThe caret and selection start position.
selectionIndexThe selection end position.

Description

Selects text in the textfield between cursorIndex and selectionIndex.