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

TextField.SelectRange

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

参数

cursorIndex光标和选择开始位置。
selectionIndex选择结束位置。

描述

在 cursorIndex 和 selectionIndex 之间的文本字段中选择文本。