.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)
Syntax
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
)
public:
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
public function Invalidate(
	rectangle : [%$TOPIC/dw2as07x_en-us_VS_110_1_0_4_0_0%]
)

Parameters

rectangle
Type: System.DrawingRectangle

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

Remarks

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