共用方式為


ToolboxComponentsCreatedEventArgs 類別

定義

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

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

範例

下列範例方法會傳回 , ToolboxComponentsCreatedEventArgs 指出已建立的元件:

ToolboxComponentsCreatedEventArgs^ CreateToolboxComponentsCreatedEventArgs( array<System::ComponentModel::IComponent^>^components )
{
   ToolboxComponentsCreatedEventArgs^ e = gcnew ToolboxComponentsCreatedEventArgs( components );
   // The components that were just created        e.Components
   return e;
}
public ToolboxComponentsCreatedEventArgs CreateToolboxComponentsCreatedEventArgs(System.ComponentModel.IComponent[] components)
{
    ToolboxComponentsCreatedEventArgs e = new ToolboxComponentsCreatedEventArgs(components);
    // The components that were just created        e.Components            
    return e;
}
Public Function CreateToolboxComponentsCreatedEventArgs(ByVal components() As System.ComponentModel.IComponent) As ToolboxComponentsCreatedEventArgs
    Dim e As New ToolboxComponentsCreatedEventArgs(components)
    ' The components that were just created        e.Components            
    Return e
End Function

備註

ComponentsCreated 元件新增至工具箱時,就會引發 事件。 ToolboxComponentsCreatedEventArgs 提供數據,指出要加入哪些元件或元件。

建構函式

ToolboxComponentsCreatedEventArgs(IComponent[])

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

屬性

Components

取得或設定包含要加入工具箱的元件的陣列。

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於

另請參閱