Version: 2019.2
public bool HasSelection ();

Description

Returns true if the TreeView has a selection.