次の方法で共有


PropertyDescriptorCollection.InternalSort メソッド (String )

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

Overloads Protected Sub InternalSort( _
   ByVal names() As String _)
[C#]
protected void InternalSort(string[] names);
[C++]
protected: void InternalSort(String* names __gc[]);
[JScript]
protected function InternalSort(
   names : String[]);

パラメータ

  • names
    このコレクション内の PropertyDescriptor オブジェクトを並べ替える順序を記述する文字列の配列。

使用例

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

 
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++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

PropertyDescriptorCollection クラス | PropertyDescriptorCollection メンバ | System.ComponentModel 名前空間 | PropertyDescriptorCollection.InternalSort オーバーロードの一覧 | IComparer