System.Web.UI.Design.ControlDesigner.Invalidate Method

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

Syntax

public void Invalidate (System.Drawing.Rectangle rectangle)

Parameters

rectangle
A System.Drawing.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 ControlDesigner.SetViewFlags(ViewFlags, bool) method in the ControlDesigner.Initialize(System.ComponentModel.IComponent) method.

The ControlDesigner.Invalidate(System.Drawing.Rectangle) method provides the design host with a way to instruct the control designer to redraw a specific part of the control.

Requirements

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