62 references to _tabs
System.Windows.Forms (62)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (56)
1069
foreach (var tab in
_tabs
)
1083
if (showEvents &&
_tabs
.Count > EventsTabIndex
1084
&&
_tabs
[EventsTabIndex] is { } eventTab && eventTab.Tab is EventsTab)
1145
if (selectedTab <
_tabs
.Count && (selectedTab == PropertiesTabIndex ||
_tabs
[selectedTab].Button.Visible))
1147
SelectViewTabButton(
_tabs
[selectedTab].Button, updateSelection: true);
1509
for (int i = 0; i <
_tabs
.Count; i++)
1511
Debug.Assert(
_tabs
[i] is not null, "Null item in tab array!");
1512
if (tabType ==
_tabs
[i].Tab.GetType())
1514
tab =
_tabs
[i].Tab;
1538
tabIndex =
_tabs
.Count;
1552
for (int i = 1; i <
_tabs
.Count; i++)
1554
var current =
_tabs
[i].Tab;
1576
_tabs
.Insert(tabIndex, new(tab, scope, button));
1866
foreach (var tabInfo in
_tabs
)
1871
_tabs
.Clear();
2070
foreach (var tab in
_tabs
)
2098
SelectViewTabButton(
_tabs
[PropertiesTabIndex].Button, updateSelection: true);
2121
if (
_tabs
.Count > 1)
2123
foreach (var tab in
_tabs
)
3520
for (int i = 0; i <
_tabs
.Count; i++)
3522
if (tabType ==
_tabs
[i].Tab.GetType())
3524
tab =
_tabs
[i].Tab;
3564
if (killTab &&
_tabs
[tabIndex].Scope > PropertyTabScope.Global)
3583
if (
_tabs
.Count == 0)
3590
if (
_tabs
.RemoveAll(i => i.Scope >= classification) > 0)
3593
_selectedTab =
_tabs
.FirstOrDefault();
3600
Debug.Assert(
_tabs
.Count > 0, "We don't have any tabs left!");
3606
foreach (TabInfo info in
_tabs
)
3615
Debug.Assert(
_tabs
.Count > 0, "Tab array destroyed!");
3618
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(tabIndex,
_tabs
.Count);
3620
if (
_tabs
[tabIndex].Scope == PropertyTabScope.Static)
3625
if (_selectedTab ==
_tabs
[tabIndex])
3627
_selectedTab =
_tabs
[PropertiesTabIndex];
3638
_tabs
.RemoveAt(tabIndex);
3652
for (int i = 0; i <
_tabs
.Count; i++)
3654
if (tabType ==
_tabs
[i].Tab.GetType())
3667
_tabs
.RemoveAt(tabIndex);
3722
_designerSelections[_designerHost.GetHashCode()] =
_tabs
.IndexOf(_selectedTab!);
3753
Debug.Assert(
_tabs
.Count > 0, "No view tab buttons to select!");
3785
foreach (TabInfo info in
_tabs
)
3807
_selectedTab =
_tabs
[PropertiesTabIndex];
3808
SelectViewTabButton(
_tabs
[PropertiesTabIndex].Button, updateSelection: false);
3819
if (state >= (
_tabs
.Count * _viewSortButtons.Length))
3825
state = (
_tabs
.Count * _viewSortButtons.Length) - 1;
3845
OnViewTabButtonClick(
_tabs
[tab].Button, EventArgs.Empty);
3972
if (
_tabs
.Count > 1)
3974
foreach (TabInfo info in
_tabs
)
4046
if (
_tabs
.Count > EventsTabIndex &&
_tabs
[EventsTabIndex] is { } info && info.Tab is EventsTab)
4051
SelectViewTabButton(
_tabs
[PropertiesTabIndex].Button, updateSelection: true);
4170
if (
_tabs
.Count <= 1)
4178
for (int i = 1; i <
_tabs
.Count; i++)
4180
if (
_tabs
[i].Button.Visible)
4187
_tabs
[PropertiesTabIndex].Button.Visible = shouldBeVisible;
4193
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();