[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TTreeNode.Selected

True if the current node is selected in the tree view control.

## Declaration

Source position: comctrls.pp line 3171

`public property TTreeNode.Selected : Boolean read GetSelected write SetSelected;`

## Description

Selected is a Boolean property which indicates the current node is selected in the associated TreeView control. The property value is True when nsSelected or nsMultiSelected has been included in the States property. nsSelected indicates that the node is assigned to the TCustomTreeView.Selected property. nsMultiSelected indicates that the node is stored in the TCustomTreeView.Selections property when it has MultiSelect enabled.

Setting a new value for the property causes the values in States to be updated. Similarly, the TreeView control is updated to used the node in the Selected or Selections property.

The Update method is called to redraw the TreeView control.

## See also

TTreeNode.Focused |  | True if the node has focus in the TreeView control.