PropertyDescriptorCollection クラスとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PropertyDescriptorCollection クラスの意味・解説 

PropertyDescriptorCollection クラス

PropertyDescriptor オブジェクトコレクション表します

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Public Class PropertyDescriptorCollection
    Implements IList, IDictionary, ICollection, IEnumerable
Dim instance As PropertyDescriptorCollection
public class PropertyDescriptorCollection :
 IList, IDictionary, ICollection, 
    IEnumerable
public ref class PropertyDescriptorCollection
 : IList, IDictionary, ICollection, 
    IEnumerable
public class PropertyDescriptorCollection implements
 IList, IDictionary, 
    ICollection, IEnumerable
public class PropertyDescriptorCollection implements
 IList, IDictionary, 
    ICollection, IEnumerable
解説解説
使用例使用例

button1プロパティ使用して新しPropertyDescriptorCollection作成するコード例次に示します。この例では、button1フォーム上でインスタンス化されていることが必要です。

Dim properties As PropertyDescriptorCollection
 = TypeDescriptor.GetProperties(button1)
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(button1);
PropertyDescriptorCollection^ properties = TypeDescriptor::GetProperties( button1
 );
PropertyDescriptorCollection properties = 
    TypeDescriptor.GetProperties(button1);

ボタンに関するすべてのプロパティテキスト ボックス出力する例を次に示します。この例では、button1textBox1フォーム上でインスタンス化されていることが必要です。

Private Sub MyPropertyCollection()
    ' Creates a new collection and assign it the properties for button1.
    Dim properties As PropertyDescriptorCollection
 = TypeDescriptor.GetProperties(button1)
    
    ' Displays each property in the collection in a text box.
    Dim myProperty As PropertyDescriptor
    For Each myProperty In
  properties
        textBox1.Text &= myProperty.Name & ControlChars.Cr
    Next myProperty
End Sub 'MyPropertyCollection
 
private void MyPropertyCollection() {
    // Creates a new collection and assign it the properties for button1.
    PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(button1);
 
    // Displays each property in the collection in a text box.
    foreach (PropertyDescriptor myProperty in
 properties)
       textBox1.Text += myProperty.Name + '\n';
 }
private:
   void MyPropertyCollection()
   {
      // Creates a new collection and assign it the properties for button1.
      PropertyDescriptorCollection^ properties = TypeDescriptor::GetProperties( button1
 );
      
      // Displays each property in the collection in a text box.
      for each ( PropertyDescriptor^ myProperty in
 properties )
      {
         textBox1->Text = String::Concat( textBox1->Text, myProperty->Name,
 "\n" );
      }
   }
private void MyPropertyCollection()
{
    // Creates a new collection and assign it the properties for button1.
    PropertyDescriptorCollection properties = 
        TypeDescriptor.GetProperties(button1);

    // Displays each property in the collection in a text box.
    for (int iCtr = 0; iCtr < properties.get_Count();
 iCtr++) {
        PropertyDescriptor myProperty = properties.get_Item(iCtr);
        textBox1.set_Text(myProperty.get_Name() + '\n');
    }
} //MyPropertyCollection
継承階層継承階層
System.Object
  System.ComponentModel.PropertyDescriptorCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からPropertyDescriptorCollection クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からPropertyDescriptorCollection クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPropertyDescriptorCollection クラス を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「PropertyDescriptorCollection クラス」の関連用語

PropertyDescriptorCollection クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



PropertyDescriptorCollection クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS