# Selected()

> Selects all elements that are not selected.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use Checked() instead

```csharp
public UQueryBuilder<T> Selected()
```

### Returns

| Type                                                                                          | Description |
| --------------------------------------------------------------------------------------------- | ----------- |
| [UQueryBuilder\<T>](/engine/6000.0/script-reference/unityengine/uielements/uquerybuilder1.md) |             |
