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