共用方式為


DesignerEventArgs 類別

定義

提供 DesignerCreatedDesignerDisposed 事件的資料。

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

範例

下列範例示範如何建立 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

備註

建立 DesignerCreated 或處置檔時,會引發和 DesignerDisposed 事件。

建構函式

DesignerEventArgs(IDesignerHost)

初始化 DesignerEventArgs 類別的新執行個體。

屬性

Designer

取得文件的主應用程式 (Host)。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱