共用方式為


ToolboxComponentsCreatingEventArgs 類別

定義

提供元件加入工具箱時發生的 ComponentsCreating 事件的資料。

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

範例

下列範例方法會傳回 , ToolboxComponentsCreatingEventArgs 指出即將接收新元件或元件集的設計工具主機:

ToolboxComponentsCreatingEventArgs^ CreateToolboxComponentsCreatingEventArgs( System::ComponentModel::Design::IDesignerHost^ host )
{
   ToolboxComponentsCreatingEventArgs^ e = gcnew ToolboxComponentsCreatingEventArgs( host );
   // The designer host of the document receiving the components        e.DesignerHost
   return e;
}
public ToolboxComponentsCreatingEventArgs CreateToolboxComponentsCreatingEventArgs(System.ComponentModel.Design.IDesignerHost host)
{
    ToolboxComponentsCreatingEventArgs e = new ToolboxComponentsCreatingEventArgs(host);
    // The designer host of the document receiving the components        e.DesignerHost            
    return e;
}
Public Function CreateToolboxComponentsCreatingEventArgs(ByVal host As System.ComponentModel.Design.IDesignerHost) As ToolboxComponentsCreatingEventArgs
    Dim e As New ToolboxComponentsCreatingEventArgs(host)
    ' The designer host of the document receiving the components        e.DesignerHost            
    Return e
End Function

備註

ComponentsCreating當元件即將新增至工具箱時,就會引發 事件。 ToolboxComponentsCreatingEventArgs 提供數據,指出已要求加入元件的設計工具。

建構函式

ToolboxComponentsCreatingEventArgs(IDesignerHost)

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

屬性

DesignerHost

取得或設定要求建立工具箱元件的 IDesignerHost 的執行個體。

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於

另請參閱