Method ResumeLayout
ResumeLayout(bool, bool)
Resumes the usual layout logic.
[Browsable(false)]
public virtual void ResumeLayout(bool performLayout = true, bool layoutParent = true)
Parameters
performLayoutbooltrueto execute pending layout requests; otherwise,false.layoutParentboolSpecifies whether to call parent's PerformLayout(bool). Optional. By default is
true.
Remarks
Resumes the usual layout logic after SuspendLayout() has
been called.
When the performLayout parameter is set to true,
an immediate layout occurs.
The SuspendLayout() and ResumeLayout(bool, bool) methods are used in tandem to suppress multiple layouts while you adjust multiple attributes of the control. For example, you would typically call the SuspendLayout() method, then set some properties of the control, or add child controls to it, and then call the ResumeLayout(bool, bool) method to enable the changes to take effect.