共用方式為


ViewEventArgs(ViewEvent, DesignerRegion, EventArgs) 建構函式

定義

為設計介面上的檢視事件型別初始化 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)

參數

eventType
ViewEvent

引發事件的動作類型;用來初始化 EventType

region
DesignerRegion

動作所套用的設計工具區域;用來初始化 Region

eventArgs
EventArgs

eventType 關聯的事件引數;用來初始化 EventArgs

備註

設計工具主機會使用建 ViewEventArgs 構函式來初始化 ViewEventArgs 事件的 物件 ViewEvent 。 設計工具主機會將初始化 ViewEventArgs 的物件傳遞至 ViewEventHandler 委派。

一般而言, region 會針對 Click 事件設定,而 null visual Basic) 中 Paint 為 和 TemplateModeChanged 事件設定 (Nothing

適用於

另請參閱