Vcl.ComCtrls.TCustomTreeView.SortType

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property SortType: TSortType read FSortType write SetSortType default stNone;

C++

__property TSortType SortType = {read=FSortType, write=SetSortType, default=0};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTreeView

Description

Determines if and how the nodes in a tree view are automatically sorted.

Once a tree view is sorted, the original hierarchy is lost. That is, setting the SortType back to stNone will not restore the original order of items. These are the possible values:



Value Meaning

stNone

No sorting is done.

stData

The items are sorted when the Data object or SortType is changed.

stText

The items are sorted when the Caption or SortType is changed.

stBoth

The items are sorted when either the Data object, the Caption or SortType is changed



Optionally, the OnCompare event can be hooked to handle comparisons.

See Also