6 writes to LayoutSuspendCount
System.Windows.Forms (6)
System\Windows\Forms\Control.cs (6)
8347
LayoutSuspendCount
= 1;
8361
LayoutSuspendCount
= 0;
9369
LayoutSuspendCount
++;
9376
LayoutSuspendCount
--;
9380
LayoutSuspendCount
--;
10639
LayoutSuspendCount
++;
13 references to LayoutSuspendCount
System.Windows.Forms (13)
System\Windows\Forms\Control.cs (7)
2221
internal bool IsLayoutSuspended =>
LayoutSuspendCount
> 0;
8329
if (
LayoutSuspendCount
> 0)
9365
if (
LayoutSuspendCount
> 0)
9367
if (
LayoutSuspendCount
== 1)
9381
if (
LayoutSuspendCount
== 0 && GetState(States.LayoutDeferred) && performLayout)
10640
if (
LayoutSuspendCount
== 1)
10645
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\Layout\DefaultLayout.cs (2)
852
if ((ancestorInDesignMode && parent.
LayoutSuspendCount
> 1)
853
|| (!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!");