[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomListBox.Sorted

Determines whether the list entries are sorted in alphanumeric order.

Declaration

Source position: stdctrls.pp line 679

public property TCustomListBox.Sorted : Boolean
  read FSorted
  write SetSorted
  default False;

Description

Sorted is a Boolean property which determines whether the values in Items are sorted and stored in alphanumeric order in the control.

Setting this property to True enables use of ascending alphanumeric case-insensitive sorting of items in the list. When True, new entries are added in sort order, and are not necessarily stored at the end of the list.

Setting a new value for the property causes the private UpdateSorted method to be called to notify the widgetset class of the change in order, or to update the Sorted property in Items when needed.

See also

TCustomListBox.Items

  

The list of all items defined in the control.

TCustomListBox.AddItem

  

Adds an item to the list.


Version 3.2 Generated 2024-02-25 Home