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

# TCustomTreeView.SelectionVisible

Indicates whether selected tree node(s) on the control are visible.

## Declaration

Source position: comctrls.pp line 3742

`public function TCustomTreeView.SelectionVisible: Boolean;`

## Function result

True when a selected tree node on the control is visible.

## Description

SelectionVisible is a Boolean function which indicates whether the selected tree node(s) for the control are in its visible display area. SelectionVisible checks both multi-selections and a single selection on the control.

For multi-selections, the GetFirstMultiSelected and GetNextMultiSelected methods are called to visit each of the tree nodes. The return value is set to True when the first tree node with its IsVisible property set to True is found.

When Items does not contain multi-selections, the value in Selected is used. The return value is True when the IsFullHeightVisible property in the tree node is set to True.

SelectionVisible is used in the MakeSelectionVisible method and controls whether the MakeVisible method is called for the first tree node in a selection.