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

TCustomTreeView.SortType

Allow to show items sorted: by caption, by Data property or both.

Declaration

Source position: comctrls.pp line 3596

protected property TCustomTreeView.SortType : TSortType
  read FSortType
  write SetSortType
  default stNone;

Description

Changing the Text or Data of a node will sort again. While adding nodes does not. Call TreeView1.AlphaSort to sort the whole tree. Call ParentNode.CustomSort(nil) to sort only the child nodes of a single node.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.