.NET Framework Class Library
ControlDesignerInvalidate Method (Rectangle)

Invalidates the specified 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 Sub Invalidate ( _
	rectangle As [%$TOPIC/dw2as07x_en-us_VS_110_1_0_0_0_0%] _
public void Invalidate(
	[%$TOPIC/dw2as07x_en-us_VS_110_1_0_1_0_0%] rectangle
void Invalidate(
	[%$TOPIC/dw2as07x_en-us_VS_110_1_0_2_0_0%] rectangle
member Invalidate : 
        rectangle:[%$TOPIC/dw2as07x_en-us_VS_110_1_0_3_0_0%] -> unit


Type: System.DrawingRectangle

A Rectangle object that represents the area to invalidate, relative to the upper-left corner of the control.


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 a specific part of the control.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
.NET Framework Security

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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