# ToggleValue()

> Inverts the value property.

## Definition

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

```csharp
protected virtual void ToggleValue()
```

### Remarks

Override this method to change the logic of toggling the value in your subclass.
