6 writes to LayoutSuspendCount
System.Windows.Forms (6)
System\Windows\Forms\Control.cs (6)
8347LayoutSuspendCount = 1; 8361LayoutSuspendCount = 0; 9369LayoutSuspendCount++; 9376LayoutSuspendCount--; 9380LayoutSuspendCount--; 10639LayoutSuspendCount++;
13 references to LayoutSuspendCount
System.Windows.Forms (13)
System\Windows\Forms\Control.cs (7)
2221internal bool IsLayoutSuspended => LayoutSuspendCount > 0; 8329if (LayoutSuspendCount > 0) 9365if (LayoutSuspendCount > 0) 9367if (LayoutSuspendCount == 1) 9381if (LayoutSuspendCount == 0 && GetState(States.LayoutDeferred) && performLayout) 10640if (LayoutSuspendCount == 1) 10645Debug.Assert(LayoutSuspendCount > 0, "SuspendLayout: layoutSuspendCount overflowed.");
System\Windows\Forms\Control.SuspendLayoutScope.cs (2)
23_layoutSuspendCount = _control?.LayoutSuspendCount ?? 0; 32Debug.Assert(_control is null || _layoutSuspendCount == _control.LayoutSuspendCount, "Suspend/Resume layout mismatch!");
System\Windows\Forms\Layout\DefaultLayout.cs (2)
852if ((ancestorInDesignMode && parent.LayoutSuspendCount > 1) 853|| (!ancestorInDesignMode && parent.LayoutSuspendCount != 0))
System\Windows\Forms\Layout\LayoutTransaction.cs (2)
46_layoutSuspendCount = _controlToLayout.LayoutSuspendCount; 64Debug.Assert(_controlToLayout is null || _controlToLayout.LayoutSuspendCount == _layoutSuspendCount, "Suspend/Resume layout mismatch!");