IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) メソッド

定義

PropertyDescriptorListSortDirectionに基づいてリストを並べ替えます。

public:
 void ApplySort(System::ComponentModel::PropertyDescriptor ^ property, System::ComponentModel::ListSortDirection direction);
public void ApplySort(System.ComponentModel.PropertyDescriptor property, System.ComponentModel.ListSortDirection direction);
abstract member ApplySort : System.ComponentModel.PropertyDescriptor * System.ComponentModel.ListSortDirection -> unit
Public Sub ApplySort (property As PropertyDescriptor, direction As ListSortDirection)

パラメーター

property
PropertyDescriptor

並べ替えの基準となる PropertyDescriptor

direction
ListSortDirection

ListSortDirection値の 1 つ。

例外

注釈

項目が追加または削除された場合、これらの項目は並べ替えの順序で配置されます。

このメソッドは、 SupportsSortingtrueされている場合にサポートされます。それ以外の場合、このメソッドは NotSupportedExceptionをスローします。

注意 (実装者)

このメソッドの実装では、Reset列挙型を使用してListChanged イベントを発生させる必要があります。

適用対象