# SelectionMode

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Specifies the selection behavior of a [TreeView](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview), a [ListBox](https://docs.wisej.com/api/wisej.web/lists-and-grids/listbox) or a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview).

{% tabs %}
{% tab title="C#" %}

```csharp
public enum SelectionMode : Enum
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Enum SelectionMode As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| Name              | Description                                                                                              |
| ----------------- | -------------------------------------------------------------------------------------------------------- |
| **MultiExtended** | Multiple items can be selected, and the user can use the SHIFT, CTRL, and arrow keys to make selections. |
| **MultiSimple**   | Multiple items can be selected.                                                                          |
| **None**          | No items can be selected.                                                                                |
| **One**           | Only one item can be selected.                                                                           |

## Used By

| Name                                                                                                                                                             | Description                                                                                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ListBox.SelectionMode](https://docs.wisej.com/api/lists-and-grids/listbox#selectionmode)                                                                        | Returns or sets the method in which items are selected in the [ListBox](https://docs.wisej.com/api/wisej.web/lists-and-grids/listbox).                          |
| [ListView.SelectionMode](https://docs.wisej.com/api/lists-and-grids/listview#selectionmode)                                                                      | Returns or sets the current selection mode determining how items are selected in the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview). |
| [TreeView.SelectionMode](https://docs.wisej.com/api/lists-and-grids/treeview#selectionmode)                                                                      | Returns or sets the method in which items are selected in the [TreeView](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview).                        |
| [ListBoxExtensions.SelectionMode](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.listboxextensions#selectionmode-listbox-selectionmode) | Sets the SelectionMode property of the specified [ListBox](https://docs.wisej.com/api/wisej.web/lists-and-grids/listbox).                                       |
