Returns or sets a value that determines whether the ListItem objects in a ListView control are sorted.
object.Sorted [= boolean]
The parts of the Sorted property syntax are described in the following table.
Part | Description |
---|---|
object | An object expression that evaluates to a ListView control. |
boolean | A Boolean expression specifying whether the ListItem objects are sorted, as described in Settings. |
The Sorted property settings are described in the following table.
Setting | Description |
---|---|
True | The list items are sorted alphabetically, according to the SortOrder property. |
False | The list items are not sorted. |
The Sorted property must be set to True for the settings in the SortOrder and SortKey properties to take effect.
Each time the coordinates of a ListItem change, the Sorted property becomes False.