System.Web.UI.Design.ControlDesigner.OnControlResize Method

Called when the associated Web server control has been resized in the design host at design time.

Syntax

[System.Obsolete("Use OnComponentChanged() instead")]
protected virtual void OnControlResize ()

Remarks

Note:

The ControlDesigner.OnControlResize method is obsolete. Use the ControlDesigner.OnComponentChanged(object, System.ComponentModel.Design.ComponentChangedEventArgs) method for equivalent control designer functionality.

The ControlDesigner.OnControlResize method typically is called only by the design-time environment when a user action causes the associated Web server control to be resized. The ControlDesigner.OnControlResize method might be called several times during a resizing process to display the updated size of the control before the resizing is completed. The width and height properties of the control are updated before the ControlDesigner.OnControlResize method is called.

Requirements

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