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.

注解

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

当在设计时单击控件区域时,设计器宿主会 ViewEventArgs 为事件类型初始化对象 Click ,然后 EventArgs 使用对象设置该属性 DesignerRegionMouseEventArgsWhen 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.

适用于

另请参阅