# SetCheckedPseudoState(bool)

> Sets whether or not this element is displayed as being checked.

## Definition

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

```csharp
public void SetCheckedPseudoState(bool value)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Remarks

If set to true, this element will match the `:checked` pseudo-class.

Some elements, like the [Toggle](/engine/6000.7/script-reference/unityengine/uielements/toggle.md), use this method internally to reflect changes to their internal state. Calling this method on those elements may have no effect or only result in a temporary change in their displayed styles.
