2 writes to _controls
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ComponentTray.cs (2)
84
_controls
= [];
888
_controls
= null;
25 references to _controls
System.Windows.Forms.Design (25)
System\Windows\Forms\Design\ComponentTray.cs (25)
345
if (
_controls
is null ||
_controls
.Count <= 0)
350
_controls
.Sort(new AutoArrangeComparer());
365
foreach (Control ctl in
_controls
)
705
_controls
.Add(trayctl);
849
if (disposing &&
_controls
is not null)
887
_controls
.Clear();
905
for (int i = 0; i <
_controls
.Count; i++)
907
TrayControl control = (TrayControl)
_controls
[i];
911
if (targetIndex >= 0 && targetIndex <
_controls
.Count)
913
return ((TrayControl)
_controls
[targetIndex]).Component;
922
if (
_controls
.Count > 0)
924
int targetIndex = (forward ? 0 :
_controls
.Count - 1);
925
return ((TrayControl)
_controls
[targetIndex]).Component;
1411
foreach (Control ctl in
_controls
)
1501
_controls
?.Remove(c);
1722
if (
_controls
.Count > 1)
1724
prevCtl =
_controls
[^1];
1753
if (
_controls
.Count > 1)
1758
int index =
_controls
.IndexOf(c);
1762
prevCtl =
_controls
[index - 1];
1778
if (
_controls
.Count > 1)
1780
int index =
_controls
.IndexOf(c);
1784
prevCtl =
_controls
[index - 1];
1795
Debug.Assert(
_controls
.IndexOf(c) != -1, "Add control to the list of controls before autoarranging.!!!");