IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) Method

Definición

Ordena la lista basándose en PropertyDescriptor y ListSortDirection.Sorts the list based on a PropertyDescriptor and a ListSortDirection.

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)

Parámetros

Excepciones

Comentarios

Si se agregan o quitan elementos, estos elementos se colocan en el orden de la ordenación.If items are added or removed, these items are placed in the order of the sort.

Este método es compatible si SupportsSorting es true; de lo contrario, este método produce una NotSupportedException.This method is supported if SupportsSorting is true; otherwise, this method throws a NotSupportedException.

Notas a los implementadores

La implementación de este método debe generar un ListChanged evento con el Reset enumeración.The implementation of this method should raise a ListChanged event with the Reset enumeration.

Se aplica a