System.Web.UI.Design.ViewEventHandler Delegate

Represents the method that will handle the IControlDesignerView.ViewEvent event that is raised by visual design tools, such as vsprvslong, implementing the System.Web.UI.Design.IControlDesignerView interface. This class cannot be inherited.

Syntax

public delegate void ViewEventHandler (object sender, ViewEventArgs e)

Parameters

sender
Documentation for this section has not yet been entered.
e
Documentation for this section has not yet been entered.

Remarks

When you create a System.Web.UI.Design.ViewEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event-handler delegates, see Events and Delegates.

The IControlDesignerView.ViewEvent event is raised by the designer host for certain actions on a control on the design surface. The IControlDesignerView.ViewEvent event is handled by a System.Web.UI.Design.ViewEventHandler delegate method, which takes a System.Web.UI.Design.ViewEventArgs object as a parameter.

Typically, control designer classes do not directly implement or assign a System.Web.UI.Design.ViewEventHandler delegate. The System.Web.UI.Design.ControlDesigner base class supplies a default delegate for the IControlDesignerView.ViewEvent event. Custom control designers override the ControlDesigner.OnClick(DesignerRegionMouseEventArgs), ControlDesigner.OnPaint(System.Windows.Forms.PaintEventArgs), and TemplatedControlDesigner.OnTemplateModeChanged methods to process those events for the control on the design surface. The ControlDesigner.Initialize(System.ComponentModel.IComponent) method sets the default event delegate for the IControlDesignerView.ViewEvent delegate.

Requirements

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