62 references to _tabs
System.Windows.Forms (62)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (56)
1024foreach (var tab in _tabs) 1038if (showEvents && _tabs.Count > EventsTabIndex 1039&& _tabs[EventsTabIndex] is { } eventTab && eventTab.Tab is EventsTab) 1100if (selectedTab < _tabs.Count && (selectedTab == PropertiesTabIndex || _tabs[selectedTab].Button.Visible)) 1102SelectViewTabButton(_tabs[selectedTab].Button, updateSelection: true); 1464for (int i = 0; i < _tabs.Count; i++) 1466Debug.Assert(_tabs[i] is not null, "Null item in tab array!"); 1467if (tabType == _tabs[i].Tab.GetType()) 1469tab = _tabs[i].Tab; 1493tabIndex = _tabs.Count; 1507for (int i = 1; i < _tabs.Count; i++) 1509var current = _tabs[i].Tab; 1531_tabs.Insert(tabIndex, new(tab, scope, button)); 1818foreach (var tabInfo in _tabs) 1823_tabs.Clear(); 2022foreach (var tab in _tabs) 2050SelectViewTabButton(_tabs[PropertiesTabIndex].Button, updateSelection: true); 2073foreach (var tab in _tabs) 3469for (int i = 0; i < _tabs.Count; i++) 3471if (tabType == _tabs[i].Tab.GetType()) 3473tab = _tabs[i].Tab; 3513if (killTab && _tabs[tabIndex].Scope > PropertyTabScope.Global) 3532if (_tabs.Count == 0) 3539if (_tabs.RemoveAll(i => i.Scope >= classification) > 0) 3542_selectedTab = _tabs.FirstOrDefault(); 3549Debug.Assert(_tabs.Count > 0, "We don't have any tabs left!"); 3555foreach (TabInfo info in _tabs) 3564Debug.Assert(_tabs.Count > 0, "Tab array destroyed!"); 3567ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(tabIndex, _tabs.Count); 3569if (_tabs[tabIndex].Scope == PropertyTabScope.Static) 3574if (_selectedTab == _tabs[tabIndex]) 3576_selectedTab = _tabs[PropertiesTabIndex]; 3587_tabs.RemoveAt(tabIndex); 3601for (int i = 0; i < _tabs.Count; i++) 3603if (tabType == _tabs[i].Tab.GetType()) 3616_tabs.RemoveAt(tabIndex); 3671_designerSelections[_designerHost.GetHashCode()] = _tabs.IndexOf(_selectedTab!); 3702Debug.Assert(_tabs.Count > 0, "No view tab buttons to select!"); 3739foreach (TabInfo info in _tabs) 3761_selectedTab = _tabs[PropertiesTabIndex]; 3762Debug.Assert(_tabs[PropertiesTabIndex].Tab.GetType() == DefaultTabType, "First item is not property tab!"); 3763SelectViewTabButton(_tabs[PropertiesTabIndex].Button, updateSelection: false); 3774if (state >= (_tabs.Count * _viewSortButtons.Length)) 3780state = (_tabs.Count * _viewSortButtons.Length) - 1; 3800OnViewTabButtonClick(_tabs[tab].Button, EventArgs.Empty); 3927if (_tabs.Count > 1) 3929foreach (TabInfo info in _tabs) 3998if (_tabs.Count > EventsTabIndex && _tabs[EventsTabIndex] is { } info && info.Tab is EventsTab) 4003SelectViewTabButton(_tabs[PropertiesTabIndex].Button, updateSelection: true); 4122if (_tabs.Count <= 1) 4130for (int i = 1; i < _tabs.Count; i++) 4132if (_tabs[i].Button.Visible) 4139_tabs[PropertiesTabIndex].Button.Visible = shouldBeVisible; 4145if (!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();