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