Implemented interface member:
25 references to Count
System.Windows.Forms (14)
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
982
if (index >= 0 && index < TabPages.
Count
- 1)
1782
s += $", TabPages.Count: {TabPages.
Count
}";
1783
if (TabPages.
Count
> 0)
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (5)
47
|| owner.TabPages.
Count
== 0
49
|| index > owner.TabPages.
Count
)
73
if (owner.TabPages.
Count
== 0)
80
return owner.TabPages.
Count
+ 1;
121
NavigateDirection.NavigateDirection_LastChild => owner.TabPages.
Count
> 0
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (5)
163
for (int index = 0; index <
Count
; ++index)
204
for (int i = 0; i <
Count
; i++)
292
return ((index >= 0) && (index <
Count
));
298
if (
Count
> 0)
300
Array.Copy(_owner.GetTabPages(), 0, dest, index,
Count
);
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
89
return OwningTabControl.TabPages.
Count
> 0 ? OwningTabControl.TabPages[0].TabAccessibilityObject : null;
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
345
int count = _tabControl.TabPages.
Count
;
System\Windows\Forms\Design\TabControlDesigner.cs (1)
326
if (tc is null || tc.TabPages.
Count
== 0)
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\TabControlDesignerTests.cs (1)
51
tabControl.TabPages.
Count
.Should().Be(1);
System.Windows.Forms.Tests (7)
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (5)
5012
Assert.Equal(2, TabControl.TabPages.
Count
);
5018
Assert.Equal(3, TabControl.TabPages.
Count
);
5036
Assert.Equal(1, TabControl.TabPages.
Count
);
5042
Assert.Equal(2, TabControl.TabPages.
Count
);
5048
Assert.Equal(3, TabControl.TabPages.
Count
);
System\Windows\Forms\TabControlTests.cs (2)
2058
Assert.Equal(value < 0 || value >= control.TabPages.
Count
? null : control.TabPages[value], control.SelectedTab);
2068
Assert.Equal(value < 0 || value >= control.TabPages.
Count
? null : control.TabPages[value], control.SelectedTab);
System.Windows.Forms.UI.IntegrationTests (1)
TabControlTests.cs (1)
147
tabControl.SelectedIndex = tabControl.TabPages.
Count
- 1;