TdxTreeViewNode.CustomSort(TdxTreeViewNodeCompareProc,TdxNativeInt,Boolean) Method
Custom sorts the node’s children.
#Declaration
function CustomSort(ACompareProc: TdxTreeViewNodeCompareProc; AData: TdxNativeInt; ARecurse: Boolean = False): Boolean;
#Parameters
Name | Type | Description |
---|---|---|
ACompare |
Tdx |
A custom comparison routine. |
AData | Tdx |
Specifies a pointer to additional data for the custom comparison routine. |
ARecurse | Boolean | If True, the function sorts child nodes at all nesting levels. If False, the function sorts only immediate children. |
#Returns
Type | Description |
---|---|
Boolean | True if the function call successfully sorted tree nodes; otherwise, False. |