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