TypeConverter.SortProperties(PropertyDescriptorCollection, String[]) Metodo

Definizione

Ordina un insieme di proprietà.

protected:
 System::ComponentModel::PropertyDescriptorCollection ^ SortProperties(System::ComponentModel::PropertyDescriptorCollection ^ props, cli::array <System::String ^> ^ names);
protected System.ComponentModel.PropertyDescriptorCollection SortProperties (System.ComponentModel.PropertyDescriptorCollection props, string[] names);
member this.SortProperties : System.ComponentModel.PropertyDescriptorCollection * string[] -> System.ComponentModel.PropertyDescriptorCollection
Protected Function SortProperties (props As PropertyDescriptorCollection, names As String()) As PropertyDescriptorCollection

Parametri

props
PropertyDescriptorCollection

Insieme PropertyDescriptorCollection contenente le proprietà da ordinare.

names
String[]

Matrice di nomi nell'ordine in cui si desidera visualizzare le proprietà dell'insieme.

Restituisce

Insieme PropertyDescriptorCollection che contiene le proprietà ordinate.

Commenti

Tutte le proprietà nella raccolta che non sono già nella matrice di nomi vengono aggiunte alfabeticamente alla fine. Se il names parametro è una matrice vuota o null, tutte le proprietà dell'insieme vengono ordinate in ordine alfabetico.

Si applica a

Vedi anche