Back to Devexpress

TdxCustomTreeView.AlphaSort(Boolean) Method

vcl-dxtreeview-dot-tdxcustomtreeview-dot-alphasort-x28-system-dot-boolean-x29.md

latest1.5 KB
Original Source

TdxCustomTreeView.AlphaSort(Boolean) Method

Sorts tree nodes by their captions.

Declaration

delphi
function AlphaSort(ARecurse: Boolean = True): Boolean;

Parameters

NameTypeDescription
ARecurseBoolean

If True , the function sorts nodes at all nesting levels. If False , the function sorts only root level nodes.

|

Returns

TypeDescription
Boolean

True if the function successfully sorted tree nodes; otherwise, False.

|

Remarks

You can handle the Tree View’s OnCompare event to implement a custom node sorting algorithm.

Note

If you need to sort nodes in an individual branch, call the AlphaSort or CustomSort method of the branch’s root node.

See Also

CustomSort(TdxTreeViewNodeCompareProc,NativeInt,Boolean)

TdxCustomTreeView Class

TdxCustomTreeView Members

dxTreeView Unit