ViewEventArgs(ViewEvent, DesignerRegion, EventArgs) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化设计图面上的查看事件的类型的 ViewEventArgs 类的新实例。
public:
ViewEventArgs(System::Web::UI::Design::ViewEvent ^ eventType, System::Web::UI::Design::DesignerRegion ^ region, EventArgs ^ eventArgs);
public ViewEventArgs (System.Web.UI.Design.ViewEvent eventType, System.Web.UI.Design.DesignerRegion region, EventArgs eventArgs);
new System.Web.UI.Design.ViewEventArgs : System.Web.UI.Design.ViewEvent * System.Web.UI.Design.DesignerRegion * EventArgs -> System.Web.UI.Design.ViewEventArgs
Public Sub New (eventType As ViewEvent, region As DesignerRegion, eventArgs As EventArgs)
参数
- region
- DesignerRegion
应用操作的设计器区域;用于初始化 Region。
注解
ViewEventArgs构造函数由设计器主机用于初始化 ViewEventArgs 事件的 对象ViewEvent。 设计器主机将初始化 ViewEventArgs 的对象传递给 ViewEventHandler 委托。
通常, region
为 Click 事件设置,在 null
Visual Basic 中为 Nothing
和 TemplateModeChanged 事件) Paint (。