Vcl.ComCtrls.TCustomTreeView.SortType

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property SortType: TSortType read FSortType write SetSortType default stNone;

C++

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

プロパティ

種類 可視性 ソース ユニット
property protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTreeView

説明

ツリービューのノードを自動的にソートするかどうかと,どのような状態のときにソートするかを決めます。

ツリービューをいったんソートすると元の継承は失われます。つまり,SortType を stNone に戻しても,項目の元の順序は復元できません。次の表に,Style で指定できる値を示します。



意味

stNone

ソートは行われない

stData

Data オブジェクトまたは SortType が変更されたときに項目をソートする

stText

Caption または SortType が変更されたときに項目をソートする

stBoth

Data オブジェクト,Caption,SortType のいずれかが変更されたときに項目をソートする



OnCompare イベントが呼び出されて,ソートする 2 つのノードが比較されます。

関連項目