Vcl.ListActns.TListControlItems.SortType

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property SortType: TListItemsSortType read FSortType write SetSortType default stNone;

C++

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

Properties

Type Visibility Source Unit Parent
property published
Vcl.ListActns.pas
Vcl.ListActns.hpp
Vcl.ListActns TListControlItems

Description

Indicates how the items should be sorted.

Use SortType to indicate how you want the items sorted, if at all. The following table lists the possible values:



Value Meaning

stNone

Items are not automatically sorted. You can still sort the items explicitly by calling the Sort or CustomSort method.

stData

Items are sorted based on the value of their Data property. You must supply an OnCompare event handler to specify the sort order.

stText

Items are sorted base on the value of their Caption property. The CaseSensitive property specifies whether comparisons are case-sensitive.

stBoth

Items are sorted based on an OnCompare event handler if one is assigned, otherwise based on the value of their Caption property.



See Also