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)

适用于

另请参阅