# MoveToEndOfPreviousWord()

> Moves the cursor to the end of the previous word.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
void MoveToEndOfPreviousWord()
```

### Remarks

This API uses the visualElement's style to compute the result, so calling it before the styles are computed might return an incorrect value.
