2 writes to _controls
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ComponentTray.cs (2)
84
_controls
= [];
900
_controls
= null;
25 references to _controls
System.Windows.Forms.Design (25)
System\Windows\Forms\Design\ComponentTray.cs (25)
351
if (
_controls
is null ||
_controls
.Count <= 0)
356
_controls
.Sort(new AutoArrangeComparer());
371
foreach (Control ctl in
_controls
)
711
_controls
.Add(trayctl);
855
if (disposing &&
_controls
is not null)
899
_controls
.Clear();
920
for (int i = 0; i <
_controls
.Count; i++)
922
TrayControl control = (TrayControl)
_controls
[i];
926
if (targetIndex >= 0 && targetIndex <
_controls
.Count)
928
return ((TrayControl)
_controls
[targetIndex]).Component;
937
if (
_controls
.Count > 0)
939
int targetIndex = (forward ? 0 :
_controls
.Count - 1);
940
return ((TrayControl)
_controls
[targetIndex]).Component;
1426
foreach (Control ctl in
_controls
)
1516
_controls
?.Remove(c);
1737
if (
_controls
.Count > 1)
1739
prevCtl =
_controls
[^1];
1768
if (
_controls
.Count > 1)
1773
int index =
_controls
.IndexOf(c);
1777
prevCtl =
_controls
[index - 1];
1793
if (
_controls
.Count > 1)
1795
int index =
_controls
.IndexOf(c);
1799
prevCtl =
_controls
[index - 1];
1810
Debug.Assert(
_controls
.IndexOf(c) != -1, "Add control to the list of controls before autoarranging.!!!");