Vcl.StdCtrls.TCustomListBox.Sorted

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Sorted: Boolean read FSorted write SetSorted default False;

C++

__property bool Sorted = {read=FSorted, write=SetSorted, default=0};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomListBox

Description

Specifies whether the items in a list box are arranged alphabetically.

Use Sorted to sort the items by setting its value to true. If Sorted is false, the items are unsorted. When Sorted is true, items are automatically added or inserted into the list box in alphabetical order.

Note: Sorted has no effect if Listbox's style is lbVirtual or lbVirtualOwnerDraw

See Also

Code Examples