7 writes to LayoutSuspendCount
System.Windows.Forms (7)
System\Windows\Forms\Control.cs (6)
9194
LayoutSuspendCount
= 1;
9208
LayoutSuspendCount
= 0;
10236
LayoutSuspendCount
++;
10243
LayoutSuspendCount
--;
10247
LayoutSuspendCount
--;
11509
LayoutSuspendCount
++;
System\Windows\Forms\Control.SuspendMutation.cs (1)
110
LayoutSuspendCount
--;
16 references to LayoutSuspendCount
System.Windows.Forms (16)
System\Windows\Forms\Control.cs (7)
2488
internal bool IsLayoutSuspended =>
LayoutSuspendCount
> 0;
9176
if (
LayoutSuspendCount
> 0)
10232
if (
LayoutSuspendCount
> 0)
10234
if (
LayoutSuspendCount
== 1)
10248
if (
LayoutSuspendCount
== 0 && GetState(States.LayoutDeferred) && performLayout)
11510
if (
LayoutSuspendCount
== 1)
11515
Debug.Assert(
LayoutSuspendCount
> 0, "SuspendLayout: layoutSuspendCount overflowed.");
System\Windows\Forms\Control.SuspendLayoutScope.cs (2)
23
_layoutSuspendCount = _control?.
LayoutSuspendCount
?? 0;
32
Debug.Assert(_control is null || _layoutSuspendCount == _control.
LayoutSuspendCount
, "Suspend/Resume layout mismatch!");
System\Windows\Forms\Control.SuspendMutation.cs (3)
100
byte layoutSuspendCount =
LayoutSuspendCount
;
108
if (
LayoutSuspendCount
== layoutSuspendCount &&
LayoutSuspendCount
> 0)
System\Windows\Forms\Layout\DefaultLayout.cs (2)
859
&& ((ancestorInDesignMode && parent.
LayoutSuspendCount
> 1)
860
|| (!ancestorInDesignMode && parent.
LayoutSuspendCount
!= 0)))
System\Windows\Forms\Layout\LayoutTransaction.cs (2)
46
_layoutSuspendCount = _controlToLayout.
LayoutSuspendCount
;
64
Debug.Assert(_controlToLayout is null || _controlToLayout.
LayoutSuspendCount
== _layoutSuspendCount, "Suspend/Resume layout mismatch!");