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

ComponentEventArgs クラス

ComponentAdded、ComponentAdding、ComponentRemoved、ComponentRemoving の各イベントデータ提供します

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

<ComVisibleAttribute(True)> _
Public Class ComponentEventArgs
    Inherits EventArgs
Dim instance As ComponentEventArgs
[ComVisibleAttribute(true)] 
public class ComponentEventArgs : EventArgs
[ComVisibleAttribute(true)] 
public ref class ComponentEventArgs : public
 EventArgs
/** @attribute ComVisibleAttribute(true) */ 
public class ComponentEventArgs extends EventArgs
ComVisibleAttribute(true) 
public class ComponentEventArgs extends
 EventArgs
解説解説
使用例使用例

ComponentEventArgs作成する例を次に示します

' This example method creates a ComponentEventArgs using the specified
 argument.
' Typically, this type of event args is created by a design mode subsystem.
  
Public Function CreateComponentEventArgs(ByVal
 component As IComponent) As ComponentEventArgs

    Dim args As New ComponentEventArgs(component)

    ' The component that is related to the event:  args.Component

    Return args
End Function
// This example method creates a ComponentEventArgs using the specified
 argument.
// Typically, this type of event args is created by a design mode subsystem.
  
public ComponentEventArgs CreateComponentEventArgs(IComponent
 component)
{
    ComponentEventArgs args = new ComponentEventArgs(component);

    // The component that is related to the event:  args.Component

    return args;
}
public:
   // This example method creates a ComponentEventArgs using the specified
 argument.
   // Typically, this type of event args is created by a design mode
 subsystem.
   ComponentEventArgs^ CreateComponentEventArgs( IComponent^ component )
   {
      // The component that is related to the event:  args.Component
      return gcnew ComponentEventArgs( component );
   }
// This example method creates a ComponentEventArgs using 
// the specified argument.
// Typically, this type of event args is created by a design mode subsystem.
public ComponentEventArgs CreateComponentEventArgs(IComponent
 component)
{
    ComponentEventArgs args = new ComponentEventArgs(component);
    // The component that is related to the event:  args.Component
    return args;
} //CreateComponentEventArgs
継承階層継承階層
System.Object
   System.EventArgs
    System.ComponentModel.Design.ComponentEventArgs
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ComponentEventArgs メンバ
System.ComponentModel.Design 名前空間
ComponentEventHandler
IComponentChangeService



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

辞書ショートカット

すべての辞書の索引

「ComponentEventArgs クラス」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS