2 writes to _controls
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ComponentTray.cs (2)
84
_controls
= [];
897
_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)
896
_controls
.Clear();
914
for (int i = 0; i <
_controls
.Count; i++)
916
TrayControl control = (TrayControl)
_controls
[i];
920
if (targetIndex >= 0 && targetIndex <
_controls
.Count)
922
return ((TrayControl)
_controls
[targetIndex]).Component;
931
if (
_controls
.Count > 0)
933
int targetIndex = (forward ? 0 :
_controls
.Count - 1);
934
return ((TrayControl)
_controls
[targetIndex]).Component;
1420
foreach (Control ctl in
_controls
)
1510
_controls
?.Remove(c);
1731
if (
_controls
.Count > 1)
1733
prevCtl =
_controls
[^1];
1762
if (
_controls
.Count > 1)
1767
int index =
_controls
.IndexOf(c);
1771
prevCtl =
_controls
[index - 1];
1787
if (
_controls
.Count > 1)
1789
int index =
_controls
.IndexOf(c);
1793
prevCtl =
_controls
[index - 1];
1804
Debug.Assert(
_controls
.IndexOf(c) != -1, "Add control to the list of controls before autoarranging.!!!");