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

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

EventDescriptorCollection.Count プロパティ

コレクション内のイベント記述子の数を取得します

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

解説解説
使用例使用例

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

Private Sub GetCount()
    ' Creates a new collection and assigns it the events for button1.
    Dim events As EventDescriptorCollection
 = TypeDescriptor.GetEvents(button1)
    
    ' Prints the number of events on button1 in a text box.
    textBox1.Text = events.Count.ToString()
End Sub 'GetCount
private void GetCount() {
    // Creates a new collection and assigns it the events for button1.
    EventDescriptorCollection events = TypeDescriptor.GetEvents(button1);
 
    // Prints the number of events on button1 in a text box.
    textBox1.Text = events.Count.ToString();
 }

private:
   void GetCount()
   {
      // Creates a new collection and assigns it the events for button1.
      EventDescriptorCollection^ events = TypeDescriptor::GetEvents( button1 );
      
      // Prints the number of events on button1 in a text box.
      textBox1->Text = events->Count.ToString();
   }
private void GetCount()
{
    // Creates a new collection and assigns it the events for button1.
    EventDescriptorCollection events = TypeDescriptor.GetEvents(button1);

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


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS