在文本中放置光标的位置。(参见 ISearchView.SetSearchText)。
[MenuItem("Examples/ISearchView/SetSearchText_WithCursorPosition")] public static void SetSearchText_WithCursorPosition() { var view = SearchService.ShowContextual("asset"); view.SetSearchText("t:material", TextCursorPlacement.MoveLineStart); }
| 无 | 不移动光标。 |
| MoveLineEnd | 将光标移动到文本行的末尾。 |
| MoveLineStart | 将光标移动到文本行的开头。 |
| MoveToEndOfPreviousWord | 将光标移动到前一个词的末尾。 |
| MoveToStartOfNextWord | 将光标移动到下一个词的开头。 |
| MoveWordLeft | 将光标向左移动一个词。 |
| MoveWordRight | 将光标向右移动一个词。 |
| MoveAutoComplete | 默认光标位置(文本行末尾)。 |
| 默认 | 不移动光标。 |