This documentation is archived and is not being maintained.

TreeView.Sorted Property

Gets or sets a value indicating whether the tree nodes in the tree view are sorted.

[Visual Basic]
Public Property Sorted As Boolean
public bool Sorted {get; set;}
public: __property bool get_Sorted();
public: __property void set_Sorted(bool);
public function get Sorted() : Boolean;
public function set Sorted(Boolean);

Property Value

true if the tree nodes in the tree view are sorted; otherwise, false. The default is false.


When Sorted is set to true, the TreeNode objects are sorted in alphabetical order.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

TreeView Class | TreeView Members | System.Windows.Forms Namespace