PropertyDescriptorCollection.Count プロパティとは? わかりやすく解説

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

PropertyDescriptorCollection.Count プロパティ

コレクション内のプロパティ記述子の数を取得します

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

解説解説
使用例使用例

Count プロパティ使用してbutton1 に関するプロパティの数を出力するコード例次に示します。この例では、button1textBox1フォーム上でインスタンス化されていることが必要です。

Private Sub GetCount()
    ' Creates a new collection and assign it the properties for button1.
    Dim properties As PropertyDescriptorCollection
 = TypeDescriptor.GetProperties(button1)
       
    ' Prints the number of properties on button1 in a textbox.
    textBox1.Text = properties.Count.ToString()
End Sub

private void GetCount() {
    // Creates a new collection and assign it the properties for button1.
    PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(button1);
 
    // Prints the number of properties on button1 in a textbox.
    textBox1.Text = properties.Count.ToString();
 }

private:
   void GetCount()
   {
      // Creates a new collection and assign it the properties for button1.
      PropertyDescriptorCollection^ properties = TypeDescriptor::GetProperties( button1
 );
      
      // Prints the number of properties on button1 in a textbox.
      textBox1->Text = properties->Count.ToString();
   }
private void GetCount()
{
    // Creates a new collection and assign it the properties for button1.
    PropertyDescriptorCollection properties =
        TypeDescriptor.GetProperties(button1);

    // Prints the number of properties on button1 in a textbox.
    textBox1.set_Text(System.Convert.ToString(properties.get_Count()));
} //GetCount
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PropertyDescriptorCollection クラス
PropertyDescriptorCollection メンバ
System.ComponentModel 名前空間
PropertyDescriptor クラス
TypeDescriptor


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

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

辞書ショートカット

すべての辞書の索引

PropertyDescriptorCollection.Count プロパティのお隣キーワード
検索ランキング

   

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



PropertyDescriptorCollection.Count プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS