# selectionType

> Controls the selection type.

## Definition

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

```csharp
[UxmlAttribute]
public SelectionType selectionType { get; set; }
```

### Remarks

The default value is [SelectionType.Single](/engine/6000.7/script-reference/unityengine/uielements/selectiontype/single.md). When you set the collection view to disable selections, any current selection is cleared.
