Upraviť

Zdieľať cez


ItemCollection.SortDescriptions Property

Definition

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

public:
 virtual property System::ComponentModel::SortDescriptionCollection ^ SortDescriptions { System::ComponentModel::SortDescriptionCollection ^ get(); };
public override System.ComponentModel.SortDescriptionCollection SortDescriptions { get; }
member this.SortDescriptions : System.ComponentModel.SortDescriptionCollection
Public Overrides ReadOnly Property SortDescriptions As SortDescriptionCollection

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.

Note

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