TypeConverter.SortProperties(PropertyDescriptorCollection, String[]) メソッド

定義

プロパティのコレクションを並べ替えます。

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

パラメーター

props
PropertyDescriptorCollection

並べ替える対象のプロパティを格納している PropertyDescriptorCollection

names
String[]

コレクション内でプロパティを並べ替える順序で並べた名前の配列。

戻り値

並べ替えられたプロパティを格納した PropertyDescriptorCollection

注釈

名前の配列にまだ含まれていないコレクション内のすべてのプロパティは、末尾にアルファベット順に追加されます。 パラメーターが空の names 配列または nullの場合、コレクション内のすべてのプロパティはアルファベット順に並べ替えられます。

適用対象

こちらもご覧ください