Provides data for a IControlDesignerView.ViewEvent event that is raised when you click on a selected control or a designer region in a selected control. This class cannot be inherited.
See Also: DesignerRegionMouseEventArgs Members
The IControlDesignerView.ViewEvent event is raised by the designer host for certain actions on a control on the design surface. For example, an event is raised when you click a selected control or a designer region in a selected control on the design surface.
The System.Web.UI.Design.ControlDesigner class supplies a default delegate to handle the IControlDesignerView.ViewEvent event. When you click a selected control or a designer region of a selected control at design time, the designer host initializes a System.Web.UI.Design.ViewEventArgs object for a ViewEvent.Click event type, and then sets the ViewEventArgs.EventArgs property with a System.Web.UI.Design.DesignerRegionMouseEventArgs object.
When the System.Web.UI.Design.ViewEventArgs object indicates that you clicked a designer region, the default delegate in the System.Web.UI.Design.ControlDesigner class passes the System.Web.UI.Design.DesignerRegionMouseEventArgs object to the ControlDesigner.OnClick(DesignerRegionMouseEventArgs) method. Classes deriving from the System.Web.UI.Design.ControlDesigner class override the ControlDesigner.OnClick(DesignerRegionMouseEventArgs) method to process events that are raised when you click a control in the design host.
The DesignerRegionMouseEventArgs.Region property represents the control designer region that the event applies to, if any. The DesignerRegionMouseEventArgs.Location property represents the location on the design surface that was clicked.
For more information about events and delegates, see Events and Delegates.