Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ControlDesigner::Invalidate Method

Invalidates the whole area of the control that is displayed on the design surface and signals the control designer to redraw the control.

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

public:
void Invalidate()

To enable the control designer to handle paint events, use the SetViewFlags method in the Initialize method.

The Invalidate method provides the design host with a way to instruct the control designer to redraw the control. Essentially, this is the same as calling UpdateDesignTimeHtml method, because it causes the whole control to be redrawn.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft