Experimental: this API is experimental and might be changed or removed in the future.

TextField.SelectRange

切换到手册
public void SelectRange (int cursorIndex, int selectionIndex);

参数

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

描述

Selects text in the textfield between cursorIndex and selectionIndex.