System.Windows.Forms.ListBox.Sort Method

Sorts the items in the System.Windows.Forms.ListBox.

Syntax

protected virtual void Sort ()

Remarks

ListBox.Sort forces the collection to add each item back to itself if the ListBox.Sorted property is true. Each item is then inserted into the correct position.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0