This documentation is archived and is not being maintained.

DesignerRegionMouseEventArgs Constructor

Note: This constructor is new in the .NET Framework version 2.0.

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

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

public DesignerRegionMouseEventArgs (
	DesignerRegion region,
	Point location
public DesignerRegionMouseEventArgs (
	DesignerRegion region, 
	Point location
public function DesignerRegionMouseEventArgs (
	region : DesignerRegion, 
	location : Point



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


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.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0