FMX.TreeView.TCustomTreeView.OnCompare
Delphi
property OnCompare: TOnCompareTreeViewItemEvent read FOnCompare write FOnCompare;
C++
__property TOnCompareTreeViewItemEvent OnCompare = {read=FOnCompare, write=FOnCompare};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | FMX.TreeView.pas FMX.TreeView.hpp |
FMX.TreeView | TCustomTreeView |
Description
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.