# TextCursorPlacement

> Where to place the cursor in the text. (see ISearchView.SetSearchText ).

## Definition

* **Type:** Enum
* **Namespace:** [UnityEditor.Search](/engine/6000.7/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public enum TextCursorPlacement
```

## Examples

```csharp
[MenuItem("Examples/ISearchView/SetSearchText_WithCursorPosition")]
public static void SetSearchText_WithCursorPosition()
{
    var view = SearchService.ShowContextual("asset");
    view.SetSearchText("t:material", TextCursorPlacement.MoveLineStart);
}
```

## Fields

| Value                                                                                                                        | Description                                           |
| ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [Default](/engine/6000.7/script-reference/unityeditor/search/textcursorplacement/default.md)                                 | Do not move the cursor.                               |
| [MoveAutoComplete](/engine/6000.7/script-reference/unityeditor/search/textcursorplacement/moveautocomplete.md)               | Default cursor position (end of the line of text).    |
| [MoveLineEnd](/engine/6000.7/script-reference/unityeditor/search/textcursorplacement/movelineend.md)                         | Move the cursor to the end of the line of text.       |
| [MoveLineStart](/engine/6000.7/script-reference/unityeditor/search/textcursorplacement/movelinestart.md)                     | Move the cursor to the beginning of the line of text. |
| [MoveToEndOfPreviousWord](/engine/6000.7/script-reference/unityeditor/search/textcursorplacement/movetoendofpreviousword.md) | Move the cursor to the end of the previous word.      |
| [MoveToStartOfNextWord](/engine/6000.7/script-reference/unityeditor/search/textcursorplacement/movetostartofnextword.md)     | Move the cursor to the start of the previous word.    |
| [MoveWordLeft](/engine/6000.7/script-reference/unityeditor/search/textcursorplacement/movewordleft.md)                       | Move the cursor one word to the left.                 |
| [MoveWordRight](/engine/6000.7/script-reference/unityeditor/search/textcursorplacement/movewordright.md)                     | Move the cursor one word to the right.                |
| [None](/engine/6000.7/script-reference/unityeditor/search/textcursorplacement/none.md)                                       | Do not move the cursor.                               |
