DesignerRegionMouseEventArgs(DesignerRegion, Point) 构造函数

定义

使用指定的区域和位置初始化 DesignerRegionMouseEventArgs 类的新实例。Initializes a new instance of the DesignerRegionMouseEventArgs class with the specified region and location.

public:
 DesignerRegionMouseEventArgs(System::Web::UI::Design::DesignerRegion ^ region, System::Drawing::Point location);
public DesignerRegionMouseEventArgs (System.Web.UI.Design.DesignerRegion region, System.Drawing.Point location);
new System.Web.UI.Design.DesignerRegionMouseEventArgs : System.Web.UI.Design.DesignerRegion * System.Drawing.Point -> System.Web.UI.Design.DesignerRegionMouseEventArgs
Public Sub New (region As DesignerRegion, location As Point)

参数

region
DesignerRegion

单击的设计器区域;用于初始化 RegionThe designer region that was clicked; used to initialize the Region.

location
Point

单击的位置,相对于区域的左上角;用于初始化 LocationThe location that was clicked, relative to the upper left corner of the region; used to initialize the Location.

注解

委托方法DesignerRegionMouseEventArgs使用构造函数来初始化对象, 以便与ViewEventArgs对象一起使用。 DesignerRegionMouseEventArgs ViewEventA ViewEvent delegate method uses the DesignerRegionMouseEventArgs constructor to initialize a DesignerRegionMouseEventArgs object for use with a ViewEventArgs object.

当在设计时单击控件区域时, ViewEventArgs设计器宿主会Click为事件类型初始化对象, 然后使用DesignerRegionMouseEventArgs对象设置该EventArgs属性。When you click a control region at design time, the designer host initializes a ViewEventArgs object for a Click event type, and then sets the EventArgs property with a DesignerRegionMouseEventArgs object.

适用于

另请参阅