Skip to main content

TdxTreeViewCustomOptionsBehavior.SortType Property

Specifies the criteria by which the Tree View sorts its nodes after a node’s caption and associated data pointer changes.

Declaration

property SortType: TSortType read; write; default stNone;

Property Value

Type Default Description
TSortType stNone

The node sort criteria.

Remarks

Options include:

Value Description
stNone The control sorts no tree nodes.
stText The control sorts nodes by their Caption property.
stData The control sorts tree nodes by their Data property. Note that you should handle the control’s OnCompare event to compare tree nodes by their Data property. Otherwise, this option is identical to stNone.
stBoth The control sorts nodes by their Caption and Data properties. The built-in comparison routine ignores Data property values. Handle the control’s OnCompare event to sort nodes against these values.

The SortType property’s default value is stNone.

See Also