Прочетете на английски Редактиране

Споделяне чрез


ItemCollection.SortDescriptions Property

Definition

Gets a collection of SortDescription objects that describe how the items in the collection are sorted in the view.

C#
public override System.ComponentModel.SortDescriptionCollection SortDescriptions { get; }

Property Value

A collection of SortDescription objects that describe how the items in the collection are sorted in the view.

Remarks

Use the CanSort property to test whether the current implementation supports sorting before adding SortDescription objects to the SortDescriptionCollection.

Бележка

This property can be set only by accessing the collection object and using its various methods, such as Add. The property to access the collection object is read-only, while the collection itself is read-write.

Applies to

Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10