62 references to _tabs
System.Windows.Forms (62)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (56)
1069foreach (var tab in _tabs) 1083if (showEvents && _tabs.Count > EventsTabIndex 1084&& _tabs[EventsTabIndex] is { } eventTab && eventTab.Tab is EventsTab) 1145if (selectedTab < _tabs.Count && (selectedTab == PropertiesTabIndex || _tabs[selectedTab].Button.Visible)) 1147SelectViewTabButton(_tabs[selectedTab].Button, updateSelection: true); 1509for (int i = 0; i < _tabs.Count; i++) 1511Debug.Assert(_tabs[i] is not null, "Null item in tab array!"); 1512if (tabType == _tabs[i].Tab.GetType()) 1514tab = _tabs[i].Tab; 1538tabIndex = _tabs.Count; 1552for (int i = 1; i < _tabs.Count; i++) 1554var current = _tabs[i].Tab; 1576_tabs.Insert(tabIndex, new(tab, scope, button)); 1859foreach (var tabInfo in _tabs) 1864_tabs.Clear(); 2063foreach (var tab in _tabs) 2091SelectViewTabButton(_tabs[PropertiesTabIndex].Button, updateSelection: true); 2114if (_tabs.Count > 1) 2116foreach (var tab in _tabs) 3513for (int i = 0; i < _tabs.Count; i++) 3515if (tabType == _tabs[i].Tab.GetType()) 3517tab = _tabs[i].Tab; 3557if (killTab && _tabs[tabIndex].Scope > PropertyTabScope.Global) 3576if (_tabs.Count == 0) 3583if (_tabs.RemoveAll(i => i.Scope >= classification) > 0) 3586_selectedTab = _tabs.FirstOrDefault(); 3593Debug.Assert(_tabs.Count > 0, "We don't have any tabs left!"); 3599foreach (TabInfo info in _tabs) 3608Debug.Assert(_tabs.Count > 0, "Tab array destroyed!"); 3611ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(tabIndex, _tabs.Count); 3613if (_tabs[tabIndex].Scope == PropertyTabScope.Static) 3618if (_selectedTab == _tabs[tabIndex]) 3620_selectedTab = _tabs[PropertiesTabIndex]; 3631_tabs.RemoveAt(tabIndex); 3645for (int i = 0; i < _tabs.Count; i++) 3647if (tabType == _tabs[i].Tab.GetType()) 3660_tabs.RemoveAt(tabIndex); 3715_designerSelections[_designerHost.GetHashCode()] = _tabs.IndexOf(_selectedTab!); 3746Debug.Assert(_tabs.Count > 0, "No view tab buttons to select!"); 3778foreach (TabInfo info in _tabs) 3800_selectedTab = _tabs[PropertiesTabIndex]; 3801SelectViewTabButton(_tabs[PropertiesTabIndex].Button, updateSelection: false); 3812if (state >= (_tabs.Count * _viewSortButtons.Length)) 3818state = (_tabs.Count * _viewSortButtons.Length) - 1; 3838OnViewTabButtonClick(_tabs[tab].Button, EventArgs.Empty); 3965if (_tabs.Count > 1) 3967foreach (TabInfo info in _tabs) 4036if (_tabs.Count > EventsTabIndex && _tabs[EventsTabIndex] is { } info && info.Tab is EventsTab) 4041SelectViewTabButton(_tabs[PropertiesTabIndex].Button, updateSelection: true); 4160if (_tabs.Count <= 1) 4168for (int i = 1; i < _tabs.Count; i++) 4170if (_tabs[i].Button.Visible) 4177_tabs[PropertiesTabIndex].Button.Visible = shouldBeVisible; 4183if (!GetFlag(Flags.PropertiesChanged) || _tabs.Count == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyTabCollection.cs (6)
33return _ownerPropertyGrid._tabs.Count; 53return _ownerPropertyGrid._tabs[index].Tab; 98if (_ownerPropertyGrid._tabs.Count > 0) 101_ownerPropertyGrid._tabs.Select(i => i.Tab).ToArray(), 105_ownerPropertyGrid._tabs.Count); 119return _ownerPropertyGrid._tabs.Select(i => i.Tab).GetEnumerator();