Version: 2017.3

TreeView.GetSelection

Switch to Manual
public IList<int> GetSelection ();

Description

Returns the list of TreeViewItem IDs that are currently selected.