DesignerEventArgs DesignerEventArgs DesignerEventArgs DesignerEventArgs Class

定義

DesignerCreated イベントおよび DesignerDisposed イベントのデータを提供します。Provides data for the DesignerCreated and DesignerDisposed events.

public ref class DesignerEventArgs : EventArgs
public class DesignerEventArgs : EventArgs
type DesignerEventArgs = class
    inherit EventArgs
Public Class DesignerEventArgs
Inherits EventArgs
継承
DesignerEventArgsDesignerEventArgsDesignerEventArgsDesignerEventArgs

次の例で作成、DesignerEventArgsします。The following example demonstrates creating a DesignerEventArgs.

// This example method creates a DesignerEventArgs using the specified designer host.
// Typically, this type of event args is created by the IDesignerEventService.
DesignerEventArgs^ CreateComponentEventArgs( IDesignerHost^ host )
{
   DesignerEventArgs^ args = gcnew DesignerEventArgs( host );

   // The designer host of the created or disposed document:  args.Component

   return args;
}
// This example method creates a DesignerEventArgs using the specified designer host.
// Typically, this type of event args is created by the IDesignerEventService.  
public DesignerEventArgs CreateComponentEventArgs(IDesignerHost host)
{
    DesignerEventArgs args = new DesignerEventArgs(host);

    // The designer host of the created or disposed document:  args.Component

    return args;
}
' This example method creates a DesignerEventArgs using the specified designer host.
' Typically, this type of event args is created by the IDesignerEventService.  
Public Function CreateComponentEventArgs(ByVal host As IDesignerHost) As DesignerEventArgs

    Dim args As New DesignerEventArgs(host)

    ' The designer host of the created or disposed document:  args.Component

    Return args

End Function

注釈

DesignerCreatedDesignerDisposedドキュメントを作成または破棄されるときにイベントが発生します。The DesignerCreated and DesignerDisposed events are raised when a document is created or disposed of.

コンストラクター

DesignerEventArgs(IDesignerHost) DesignerEventArgs(IDesignerHost) DesignerEventArgs(IDesignerHost) DesignerEventArgs(IDesignerHost)

DesignerEventArgs クラスの新しいインスタンスを初期化します。Initializes a new instance of the DesignerEventArgs class.

プロパティ

Designer Designer Designer Designer

ドキュメントのホストを取得します。Gets the host of the document.

メソッド

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

既定のハッシュ関数として機能します。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

現在のインスタンスの Type を取得します。Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object.

(Inherited from Object)

適用対象

こちらもご覧ください