Export (0) Print
Expand All

DesignerRegionMouseEventArgs Constructor

Initializes a new instance of the DesignerRegionMouseEventArgs class with the specified region and location.

Namespace:  System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public DesignerRegionMouseEventArgs(
	DesignerRegion region,
	Point location


Type: System.Web.UI.Design.DesignerRegion

The designer region that was clicked; used to initialize the Region.

Type: System.Drawing.Point

The location that was clicked, relative to the upper left corner of the region; used to initialize the Location.

A ViewEvent delegate method uses the DesignerRegionMouseEventArgs constructor to initialize a DesignerRegionMouseEventArgs object for use with a ViewEventArgs object.

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft