次の方法で共有


PropertyDescriptorCollection.InternalSort メソッド

このコレクションのメンバを並べ替えます。

オーバーロードの一覧

指定した IComparer を使用して、コレクションのメンバを並べ替えます。

[Visual Basic] Overloads Protected Sub InternalSort(IComparer)

[C#] protected void InternalSort(IComparer);

[C++] protected: void InternalSort(IComparer*);

[JScript] protected function InternalSort(IComparer);

このコレクションのメンバを並べ替えます。指定した順序が最初に適用され、次にコレクションの既定の並べ替え順序が適用されます。既定の並べ替え順序は、通常はアルファベット順です。

[Visual Basic] Overloads Protected Sub InternalSort(String())

[C#] protected void InternalSort(string[]);

[C++] protected: void InternalSort(String*[]);

[JScript] protected function InternalSort(String[]);

使用例

[Visual Basic, C#, C++] PropertyDescriptorCollection に、 ABCD という名前の 4 つの PropertyDescriptor オブジェクトが含まれている場合、 myNewColl のプロパティは DBAC という順序に並べ替えられます。

[Visual Basic, C#, C++] メモ   ここでは、InternalSort のオーバーロード形式のうちの 1 つだけについて、使用例を示します。その他の例については、各オーバーロード形式のトピックを参照してください。

 
Me.InternalSort(New String() {"D", "B"})

[C#] 
this.InternalSort(new string[]{"D", "B"});

[C++] 
String* temp0 [] = {S"D", S"B"};
this->InternalSort(temp0);

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

参照

PropertyDescriptorCollection クラス | PropertyDescriptorCollection メンバ | System.ComponentModel 名前空間