---
name: "tvSelection"
type: command
status: ok
groups: ["GUI Control - Tree View"]
arma3_since: "2.02"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/tvSelection
revid: 378378
updated: 2026-04-04T04:45:23Z
---

# tvSelection

*Command · GUI Control - Tree View · Arma 3 v2.02*

## Description

Returns array of paths to selected items.

## Syntax

```sqf
tvSelection control
```

**Parameters:**

- `control`: [Control](../topics/Control.md)

**Returns:** [Tree View Path](../topics/Tree_View_Path.md)

## Examples

### Example 1

```sqf
private _selection = tvSelection _ctrlTV;
```

## See also

[tvSetSelected](../commands/tvSetSelected.md) · [tvIsSelected](../commands/tvIsSelected.md)

<sub>Source: [BI Community Wiki — tvSelection](https://community.bistudio.com/wiki/tvSelection) (revision 378378).</sub>
