# mode

> Controls how the ScrollView allows the user to scroll the contents. ScrollViewMode

## Definition

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

```csharp
[UxmlAttribute]
public ScrollViewMode mode { get; set; }
```

### Remarks

The default is [ScrollViewMode.Vertical](/engine/6000.6/script-reference/unityengine/uielements/scrollviewmode/vertical.md). Writing to this property modifies the class list of the ScrollView according to the specified value of [ScrollViewMode](/engine/6000.6/script-reference/unityengine/uielements/scrollviewmode.md). When the value changes, the class list matching the old value is removed and the class list matching the new value is added.
