ToolboxComponentsCreatedEventArgs 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为向工具箱添加组件时发生的 ComponentsCreated 事件提供数据。
public ref class ToolboxComponentsCreatedEventArgs : EventArgs
public class ToolboxComponentsCreatedEventArgs : EventArgs
type ToolboxComponentsCreatedEventArgs = class
inherit EventArgs
Public Class ToolboxComponentsCreatedEventArgs
Inherits EventArgs
- 继承
示例
以下示例方法返回一个 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) |