Table of Contents

Method SuspendLayout

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SuspendLayout()

Temporarily suspends the layout logic for the control.

public virtual void SuspendLayout()

Remarks

The layout logic of the control is suspended until the ResumeLayout(bool) method is called.

The SuspendLayout() and ResumeLayout(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) method to enable the changes to take effect.