62 references to _tabs
System.Windows.Forms (62)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (56)
1022foreach (var tab in _tabs) 1036if (showEvents && _tabs.Count > EventsTabIndex 1037&& _tabs[EventsTabIndex] is { } eventTab && eventTab.Tab is EventsTab) 1098if (selectedTab < _tabs.Count && (selectedTab == PropertiesTabIndex || _tabs[selectedTab].Button.Visible)) 1100SelectViewTabButton(_tabs[selectedTab].Button, updateSelection: true); 1462for (int i = 0; i < _tabs.Count; i++) 1464Debug.Assert(_tabs[i] is not null, "Null item in tab array!"); 1465if (tabType == _tabs[i].Tab.GetType()) 1467tab = _tabs[i].Tab; 1491tabIndex = _tabs.Count; 1505for (int i = 1; i < _tabs.Count; i++) 1507var current = _tabs[i].Tab; 1529_tabs.Insert(tabIndex, new(tab, scope, button)); 1816foreach (var tabInfo in _tabs) 1821_tabs.Clear(); 2020foreach (var tab in _tabs) 2048SelectViewTabButton(_tabs[PropertiesTabIndex].Button, updateSelection: true); 2071foreach (var tab in _tabs) 3467for (int i = 0; i < _tabs.Count; i++) 3469if (tabType == _tabs[i].Tab.GetType()) 3471tab = _tabs[i].Tab; 3511if (killTab && _tabs[tabIndex].Scope > PropertyTabScope.Global) 3530if (_tabs.Count == 0) 3537if (_tabs.RemoveAll(i => i.Scope >= classification) > 0) 3540_selectedTab = _tabs.FirstOrDefault(); 3547Debug.Assert(_tabs.Count > 0, "We don't have any tabs left!"); 3553foreach (TabInfo info in _tabs) 3562Debug.Assert(_tabs.Count > 0, "Tab array destroyed!"); 3565ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(tabIndex, _tabs.Count); 3567if (_tabs[tabIndex].Scope == PropertyTabScope.Static) 3572if (_selectedTab == _tabs[tabIndex]) 3574_selectedTab = _tabs[PropertiesTabIndex]; 3585_tabs.RemoveAt(tabIndex); 3599for (int i = 0; i < _tabs.Count; i++) 3601if (tabType == _tabs[i].Tab.GetType()) 3614_tabs.RemoveAt(tabIndex); 3669_designerSelections[_designerHost.GetHashCode()] = _tabs.IndexOf(_selectedTab!); 3700Debug.Assert(_tabs.Count > 0, "No view tab buttons to select!"); 3737foreach (TabInfo info in _tabs) 3759_selectedTab = _tabs[PropertiesTabIndex]; 3760Debug.Assert(_tabs[PropertiesTabIndex].Tab.GetType() == DefaultTabType, "First item is not property tab!"); 3761SelectViewTabButton(_tabs[PropertiesTabIndex].Button, updateSelection: false); 3772if (state >= (_tabs.Count * _viewSortButtons.Length)) 3778state = (_tabs.Count * _viewSortButtons.Length) - 1; 3798OnViewTabButtonClick(_tabs[tab].Button, EventArgs.Empty); 3925if (_tabs.Count > 1) 3927foreach (TabInfo info in _tabs) 3996if (_tabs.Count > EventsTabIndex && _tabs[EventsTabIndex] is { } info && info.Tab is EventsTab) 4001SelectViewTabButton(_tabs[PropertiesTabIndex].Button, updateSelection: true); 4120if (_tabs.Count <= 1) 4128for (int i = 1; i < _tabs.Count; i++) 4130if (_tabs[i].Button.Visible) 4137_tabs[PropertiesTabIndex].Button.Visible = shouldBeVisible; 4143if (!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();