17 references to TabCount
DesignSurface (2)
MainForm.cs (2)
42for (int i = 0; i < tabControl1.TabCount; i++) 51for (int i = 0; i < tabControl1.TabCount; i++)
System.Windows.Forms (12)
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
37_owner.Insert(_owner.TabCount, tabPage);
System\Windows\Forms\Controls\TabControl\TabControl.cs (8)
930int index = SendMessage(PInvoke.TCM_INSERTITEMW, TabCount + 1, tabPage); 1059ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, TabCount); 1082int tabPageCount = TabCount; 1109ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, TabCount); 1164ArgumentOutOfRangeException.ThrowIfGreaterThan(index, TabCount); 1586ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, TabCount); 1639ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, TabCount); 1721int count = TabCount;
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (1)
71public int Count => _owner.TabCount;
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
180if (currentIndex < tabControl.TabCount - 1) 196for (int i = 0; i < tabControl.TabCount; i++)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\TabControlDesigner.cs (1)
296tc.SelectedIndex = tc.TabCount - 1;
System.Windows.Forms.Tests (2)
System\Windows\Forms\TabControlTests.cs (1)
102Assert.Equal(0, control.TabCount);
System\Windows\Forms\ToolTipTests.cs (1)
893Assert.Equal(tabControl.TabCount, (int)PInvokeCore.SendMessage(toolTip, PInvoke.TTM_GETTOOLCOUNT));