DesignerEventArgs 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供有关 DesignerCreated 和 DesignerDisposed 事件的数据。
public ref class DesignerEventArgs : EventArgs
public class DesignerEventArgs : EventArgs
type DesignerEventArgs = class
inherit EventArgs
Public Class DesignerEventArgs
Inherits EventArgs
- 继承
示例
以下示例演示如何创建 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 |
获取文档的宿主。 |
方法
Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
GetHashCode() |
作为默认哈希函数。 (继承自 Object) |
GetType() |
获取当前实例的 Type。 (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。 (继承自 Object) |
ToString() |
返回表示当前对象的字符串。 (继承自 Object) |