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