xtd 0.2.0
Loading...
Searching...
No Matches

◆ sorted() [2/2]

virtual list_box & xtd::forms::list_box::sorted ( bool  sorted)
virtual

Sets a value indicating whether the items in the list_box are sorted alphabetically.

Parameters
sortedtrue if items in the control are sorted; otherwise, false. The default is false.
Returns
Current list_box.
Remarks
Use the sorted property to automatically sort strings alphabetically in a list_box. As items are added to a sorted list_box, the items are moved to the appropriate location in the sorted list. When adding items to a list_box, it is more efficient to sort the items first and then add new items.