System.Windows.Forms.Control.PerformLayout Method

Forces the control to apply layout logic to all its child controls.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public void PerformLayout (Control affectedControl, string affectedProperty)

Parameters

affectedControl
A System.Windows.Forms.Control that represents the most recently changed control.
affectedProperty
The name of the most recently changed property on the control.

Remarks

If the Control.SuspendLayout method was called before calling the Control.PerformLayout method, the Control.Layout event is suppressed.

The affectedControl and affectedProperty parameters can both be set to null. Doing so causes the LayoutEventArgs.AffectedControl and LayoutEventArgs.AffectedProperty properties of the System.Windows.Forms.LayoutEventArgs created to be set to null.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0