FMX.TreeView.TTreeView.OnCompare
Delphi
property OnCompare: Integer read FOnCompare write FOnCompare;
C++
__property OnCompare;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | FMX.TreeView.pas FMX.TreeView.hpp |
FMX.TreeView | TTreeView |
Description
Occurs when two nodes must be compared during a sorting of the nodes in the tree view.
FMX.TreeView.TTreeView.OnCompare inherits from FMX.TreeView.TCustomTreeView.OnCompare. All content below this line refers to FMX.TreeView.TCustomTreeView.OnCompare.
Occurs when two nodes must be compared during a sorting of the nodes in the tree view.
Write an OnCompare event handler to customize the sort order of the nodes in the tree view. If an OnCompare event handler is not provided, tree view nodes are sorted alphabetically, based on their labels.
OnCompare is an event handler of type TOnCompareTreeViewItemEvent.