RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeNodes.AlphaSort Method

Sort tree nodes.

Pascal
function AlphaSort(ARecurse: Boolean = False): Boolean;
C++
__fastcall Boolean AlphaSort(Boolean ARecurse = False);

AlphaSort triggers node sorting or resorting. If an OnCompare event handler is defined for the associated TCustomTreeView, that routine determines sort order. If no OnCompare handler is defined, nodes are sorted by a simple case-sensitive compare of their captions. 

The optional ARecurse parameter (default false) specifies that sorting should recursively descend the node tree and sort each subtree in turn. 

Calling AlphaSort is equivalent to calling CustomSort with a nil (Delphi) or NULL (C++) procedure parameter and a data parameter of 0. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!