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