FMX.TreeView.TCustomTreeView.Selected

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Selected: TTreeViewItem read FSelected write SetSelected;

C++

__property TTreeViewItem* Selected = {read=FSelected, write=SetSelected};

Properties

Type Visibility Source Unit Parent
property public
FMX.TreeView.pas
FMX.TreeView.hpp
FMX.TreeView TCustomTreeView

Description

Specifies the selected node in the tree view.

Read Selected to access the selected node of the tree view. If there is no selected node, the value of Selected is nil (Delphi) or NULL (C++).

Set Selected to set a node in the tree view. When a node becomes selected, the tree view's OnChange event occur. Also, if the specified node is the child of a collapsed parent item, the parent's list of child items is expanded to reveal the specified node.

If the MultiSelect property is True, then Selected contains the last clicked node.

See Also