ControlDesigner.OnPaint Method (PaintEventArgs)
Called when the control designer draws the associated control on the design surface, if the CustomPaint value is true.
Assembly: System.Design (in System.Design.dll)
The ViewEvent event is raised by the design host for certain actions on a control in the design surface. For example, an event is raised for the following conditions:
The user clicks the control.
The design host requests HTML markup to render the associated control on the design surface.
The user enters or exits template editing mode for the control.
The ControlDesigner class supplies a default delegate to handle the IControlDesignerView.ViewEvent event. Classes deriving from ControlDesigner should set the ViewFlags.CustomPaint value and override the method to process events that are raised when the design host draws the control on the design surface.
Themethod allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
The default implementation of themethod returns without performing any processing.
Notes to Inheritors:
Available since 2.0